kernel_module: move character device example doc to README

This commit is contained in:
Ciro Santilli
2018-06-29 07:25:32 +01:00
parent 20b9961233
commit 7f3671894f
6 changed files with 80 additions and 32 deletions

View File

@@ -1,9 +1,3 @@
/*
Automatically create the device under /dev on insmod, and remove on rmmod.
https://stackoverflow.com/questions/5970595/how-to-create-a-device-node-from-the-init-module-code-of-a-linux-kernel-module/45531867#45531867
*/
#include <linux/cdev.h>
#include <linux/device.h>
#include <linux/fs.h> /* register_chrdev, unregister_chrdev */