Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 527 Bytes

Readme.md

File metadata and controls

36 lines (27 loc) · 527 Bytes

Simple Linux Character Driver

Create an inode at master 301

sudo mknod -m 777 /dev/simple_char_device  c 301 0

View the inode successfully created:

ls -la /dev | grep simple_char_device

To install the driver, In this repo folder run:

make
sudo insmod simple_char_driver.ko

View that the device installed:

cat /proc/devices | grep simple_driver

To test simply run the tester

./simple_char_test

To remove the driver

sudo rmmod simple_char_driver