Hello!
Everybody that already wrote a driver with userspace interface knows this issue,
I do the following for my drivers:
* create the header on include/linux/my_driver_header.h
so, on my driver I include the header like this:
#include<linux/my_driver_header.h>
* After build the kernel I execute this rule:
Quote:
make headers_install make headers_install INSTALL_HDR_PATH=/usr/include
|
this rule exports the kernel headers to the /usr/include directory
the /usr/include is already a default header directory for the compiler, so, on my application I just include the header like this:
#include<linux/my_driver_header.h>