linux kernel module for char device with similar to /dev/zero functionality, but instead of nulls generates smiles ^^
run
$ make
to build the module
NOTE you need some kernel headers to build the module, if it fails on your system see Chapter 2 of the book mentioned below
use
$ ./load_smile.sh
this loads the module into the running kernel and creates fs node /dev/smile representing the device
use
$ cat /dev/smile
to see it work. Ctrl+C
to stop.
use
$ ./unload_smile.sh
to unload the module and remove /dev/smile device
this example was made by following this awesome Linux Device Drivers, Third Edition book.
you should really check it out !
also here you can find up-to-date examples for this book