Tag Archives: device drivers

Device header files in Linux

11 Jun

When your entering into the world of drivers for example Linux,the first thing you’ll notice while writing the C program is the changed header files like
#include<linux/module.h>
#include<linux/serial_reg.h
#include<linux/init.h>
#include<linux/kernel.h>
etc…
They don’t exit in the C lib of the user space.
These header files exist in the kernel directory
The path is:
/usr/src/’uname -r’ (your kernel version)/include/linux

You’ll find all the above files in this directory 🙂
Eg:/usr/src/linux-2.4.20-8/include/linux