LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   have kernel source, want headers (https://www.linuxquestions.org/questions/linux-newbie-8/have-kernel-source-want-headers-334896/)

stabu 06-18-2005 10:59 AM

have kernel source, want headers
 
Some more questions regarding headers:

1. If I have the source of the kernel I'm using, is it possible to generate the header files? or are the header files by definiition in the source itself, .i.e. the ones ending in "h"?

2.When you are compiling a module, and it requests header files, does it choose all of them or a subset (depending on what the module needs). IS it part of the modules responsibility to find the header files it wants inside the kernel source code?

Boow 06-18-2005 11:33 AM

If your using debian based distro just apt-get install kernel-headers-xxx

xxx is the debian kernel your running

twantrd 06-18-2005 12:30 PM

Quote:

1. If I have the source of the kernel I'm using, is it possible to generate the header files? or are the header files by definiition in the source itself, .i.e. the ones ending in "h"?
You don't generate header files. It's code that the module needs to look at for it to compile.

Quote:

2.When you are compiling a module, and it requests header files, does it choose all of them or a subset (depending on what the module needs). IS it part of the modules responsibility to find the header files it wants inside the kernel source code?
It will look for the header files that it needs, not all of them. Sometimes when compiling, it will state that a header file is not found. This is the case where you actually need to google and find the package that provides the headers for the module to compile.

-twantrd

stabu 06-18-2005 04:17 PM

thanks for answers .. clarifies a little ..cheers/stab.


All times are GMT -5. The time now is 08:04 AM.