Re: scull driver from ldd3 book , insmod , error

2007-11-04 Thread Mohammad M Molla
I believe if you have source code for 2.6.22 and custom compile the kernel and boot inside that you can compile the module against 2.6.22 and load too. Andrea Gasparini <[EMAIL PROTECTED]> wrote: Iman Darabi spiffera, alle Thursday 01 November 2007 circa: > i got scull driver from http://exam

Re: Is suspend() function working?

2007-11-04 Thread Rene Herman
On 11/04/2007 01:35 AM, Peter Teoh wrote: In arch/x86/kerne/apm_32.c there is the suspend() function - question is why immediately after calling save_processor_state() it will call restore_processor_state()? It won't -- the system enters suspend mode in the set_system_power_state() call that'

Re: module programming in linux 2.6

2007-11-04 Thread Rene Herman
On 11/04/2007 09:10 AM, cihan wrote: I have a module that write for kernel 2.4 and I have to port to kernel 2.6 But I compile it and I give an error like below pci.h: KBUILD_MODNAME undeclard then I add a define in makefile like this -D"KBUILD_MODNAME=KBUILD_STR(stpm)" and I give this error

module programming in linux 2.6

2007-11-04 Thread cihan
Hello everybody I have a module that write for kernel 2.4 and I have to port to kernel 2.6 But I compile it and I give an error like below pci.h: KBUILD_MODNAME undeclard then I add a define in makefile like this -D"KBUILD_MODNAME=KBUILD_STR(stpm)" and I give this error pci.h: stpm undeclared