Contents
How do I create a Linux driver?
How to build and deploy a Linux driver?
- one . c file in drivers/hid/
- add one line in drivers/hid/Makefile.
- add a few lines to drivers/hid/usbhid/Kconfig.
- add a few lines to drivers/hid/hid-ids. h.
- add a few lines to drivers/hid/usbhid/hid-quirks. c ‘s hid_blacklist struct before { 0, 0 }
How do I create a Linux kernel module?
The procedure to compile and run a kernel module is as follows:
- Modify the makefile by replacing every occurrence of helloWorld and kernelRead by the names of the modules you wish to create.
- compile the modules by running make in the directory where the modules reside. …
- Now become superuser by typing.