i want to write a device driver but not able to find the header file can someone please help me find them?Also if someone can point out some important site links that would be really appreciated
i want to write a device driver but not able to find the header file can someone please help me find them?Also if someone can point out some important site links that would be really appreciated
You should be able to install the kernel header files for the currently running kernel by running the following in a terminal:
In general, the kernel header packages are named linux-header-* where "*" indicates the version & variant (generic, server, etc.).
You can just type:
if you are on a Desktop installation. The apt-get will solve the dependencies and install the correct version of kernel headers.
Case of Obsolete kernel package
This should cover another problem when: the currently running kernel is obsolete, meaning it's not in the repository anymore neither its headers. So the best thing to do is to update the kernel to last version in the repository.
linux-generic
is a meta package to keep current version of the kernel & its headers:Note: Depending on your Ubuntu edition, See if you need
linux-lowlatency
(Ubuntu Studio),linux-signed-generic
orlinux-virtual
.Or if you have aptitude installed:
sudo aptitude install linux-headers-$(uname -r)
these commands should work:
for better instruction checkout this video