On Sun, 6 Jan 2008, eerpinisatish wrote: > Date: Sun, 06 Jan 2008 19:59:49 -0000 > From: eerpinisatish <[EMAIL PROTECTED]> > Reply-To: <[email protected]> > To: <[email protected]> > Subject: [twincling] cannot find linux/module.h > > Hi, > > I was trying to write a module which could be dynamically loaded , > the c program required a header <linux/module.h> > which i could not locate.I am using a Fedora 8 installation. > The RPMS related to kernel and headers are installed on my system. > What should i do for the header to be available ? > > thanks > Satish >
Hi Satish: The header files installed as part of the kernel source code are *not* to be used ! The kernel-headers package/RPM is one that should have installed the files. The standard location of module.h or linux kernel specific file is /usr/include/linux/ Please note that there is no version number appended to string linux. While programming modules, you also do not need to specify the location of the directory to 'gcc' compiler. Just run rpm -ql kernel-headers | more and see the output to verify the location. thanks Saifi.

