/fake-driver

A minimalistic kernel module

Primary LanguageC

Fake Device Driver

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.

Build Route

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

TODO

  • Write a simple user application for it