.. | |||
Makefile | 4 years ago | ||
README.md | 4 years ago | ||
example.c | 4 years ago |
Simple character device file.
To use:
make
and load with make test
mknod /dev/example c <MAJOR> 0
, replacing <MAJOR>
with major number returned in the kernel buffer.cat /dev/example
rm /dev/example
and unload the module with rmmod example
Followed along from here.