Re: Header Problem with RH 8.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I was recently trying a few Loadable Kernel Modules with Linux, and the
> traditional "Hello World!" module worked fine, except that I couldnt
> find which header file contains the prototype of printk() (gcc with
> -Wall gave a warning). Does any one know where is this function prototyped?
Sorry I don't know and unfounrtly not near a linux box to help. 8(

> Now for the bigger problem: When I opened /usr/include/linux/fs.h, I
> didn't find the definition of the "struct file{}", which I needed for a
> module, though it was there in /usr/src/linux-2.4/include/linux/fs.h.
> The /usr/include header contained only a portion of the kernel header.
> So my question is this: How do I get the definition if "file struct".
> Which are the correct headers to be used in the modules: the kernel
> headers from the src/ directory, or from the /usr/include directory?
Modules should (must?) use the headers in the src directory.
The headers in the include directory is for user land apps.

-- 
Eric
"Given enough time, and money... Microsoft will eventually invent UNIX."
-- Unknown
Random Sig: 28
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux