This is a minimalistic kernel module which written for learning purposes using C language. It conducts relation between non-exist device driver and user space.
First of all clone the repository
git clone https://github.com/erkanay/fake-driver.git
cd fake-driver
Then compile it with
make
Finally create a character device file in /dev
.
mknod /dev/fakedevice c 900 1
Check it out with
dmesg
- Write a simple user application for it