Oct 10, 2018

[HDGEM] Header files in the Linux kernel

In general, the kernel is distribued as a compiled binary. The headers are the source code for the kernel and are generally needed if you are building kernel modules, either manually or with some packages such as nvidia or virtualbox.
Header files in the Linux kernel are used for two purposes:
  1. to define interfaces between components of the kernel, and
  2. to define interfaces between the kernel and user space
In general, user space programs are built against the header files provided by the distribution, typically from a package named glibc-devel, glibc-kernheaders or linux-libc-dev.

In Ubuntu, install by:

$ sudo apt -y install linux-headers-generic


See also - http://kernelnewbies.org/KernelHeaders

--
Posted By Blogger to HDGEM at 3/02/2017 08:20:00 AM