Re: linux/module.h does not exist

2010-08-21 Thread arshad hussain
On 8/22/2010 11:11 AM, Tapas Mishra wrote: /home/tapas/LKP/pandora/temp/sample2/sample2.c:2:25: error: sys/syscall.h: No such file or directory My 2 cents ... #includehttp://lxr.linux.no/linux+*/include/linux/syscalls.h>> , try this include. Thanks

Re: linux/module.h does not exist

2010-08-21 Thread Tapas Mishra
Ok I did try what you suggested. From http://tldp.org/LDP/lkmpg/2.6/html/x181.html#AEN189 here is my Makefile obj-m += sample2.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean but I got same err

Re: linux/module.h does not exist

2010-08-21 Thread Mulyadi Santosa
On Sat, Aug 21, 2010 at 13:59, Tapas Mishra wrote: > Upto this point I have tried > > Step1) gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c sample2.c > Step2) added -I to gcc flag > gcc -Wall -DMODULE -D__KERNEL -DLINUX -I > /usr/src/linux-headers-2.6.28- 11/include/ -c sample2.c I've just realized t

Re: malloc memory region descriptors

2010-08-21 Thread Hemanth Kumar
Hi,  just info http://www.ibm.com/developerworks/linux/library/l-memory/ --- On Sat, 21/8/10, pardeep bansal wrote: From: pardeep bansal Subject: Re: malloc memory region descriptors To: "Prabhu nath" Cc: kernelnewbies@nl.linux.org, techtrain...@tataelxsi.co.in Date: Saturday, 21 August, 2

Re: Unable to remove sctp kernel module.

2010-08-21 Thread arshad hussain
On Sat, Aug 21, 2010 at 4:09 PM, Padmalochan Moharana wrote: > Dear All, > > To load the sctp module in kernel I have used the modprobe command. But when > I am trying to remove the sctp module using rmmod command with –f option, > kernel shows below error message as ipv6 module uses the sctp modu

Re: Configuration Options

2010-08-21 Thread Robert P. J. Day
On Sat, 21 Aug 2010, Ahmad Jbara wrote: > Hello, > I know that config option looks like CONFIG_SOMETHING. Also, each > config option is defined in the Kconfig file and later appears in > the implementation files. I searched the implemnetation files and > found some config options that are not def

Unable to remove sctp kernel module.

2010-08-21 Thread Padmalochan Moharana
Dear All, To load the sctp module in kernel I have used the modprobe command. But when I am trying to remove the sctp module using rmmod command with -f option, kernel shows below error message as ipv6 module uses the sctp module. ERROR: Module sctp is in use by [unsafe] Is there any other

Configuration Options

2010-08-21 Thread Ahmad Jbara
Hello, I know that config option looks like CONFIG_SOMETHING. Also, each config option is defined in the Kconfig file and later appears in the implementation files. I searched the implemnetation files and found some config options that are not defined in the Kconfig files. Anybody knows to explain

Re: malloc memory region descriptors

2010-08-21 Thread pardeep bansal
OK! Now I came to know what exactly your problem is.. malloc is an intelligent function...it keeps record of every byte returned by it.what it do is...It takes a bulk amount of memory from operating system.and then manage it himself for the process... malloc keeps a record of allocate

Re: linux/module.h does not exist

2010-08-21 Thread Tapas Mishra
Upto this point I have tried Step1) gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c sample2.c Step2) added -I to gcc flag gcc -Wall -DMODULE -D__KERNEL -DLINUX -I /usr/src/linux-headers-2.6.28- 11/include/ -c sample2.c Step3) added one more -I with asm in path gcc -I /usr/src/linux-headers-2.6.28-11/a

Re: linux/module.h does not exist

2010-08-21 Thread Dave Hylands
Hi Tapas, On Fri, Aug 20, 2010 at 10:35 PM, Tapas Mishra wrote: > Ok I did > > gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/ -I > /usr/src/linux-headers-2.6.28-11/include/ -c sample2.c I tried a few other variants and couldn't get them to work either. The only thing I've been able t