LDD3 notes: Compiling and loading modules
My notes while reading Linux Device Drivers 3rd edition.
out of tree module makefile boilerplate with dual purpose
- standalone: invokes kernel tree modules target
- referenced by M: acts like in-tree kbuild makefile
disposable sections with __init, __initdata, __exit
module loading races
- register facilities only when really ready to take calls
- at failure, previously registered facilities can be in use already
module_param()
- automatically exposed in /sys/module
- with given access permissions, can be read/written to
- module won't be notified of writes
Comments
Post a Comment