|
where to look for header files for kernel module
I saw at least two places which contains the header files I need for writing a kernel module ( linux/kernel.h and linux/module.h), which are
/usr/include
and /usr/src/linux-xxx/include (xxx is the kernel version)
seems the files they contain are quite different...sometimes my module only compiles with the header files from the second include path, (use -I to choose the include path).
Anyone knows the difference between these two paths and the their purpose?
|