Linux device drivers
Homepage of LDD http://lwn.net/Kernel/LDD3/
###Source
- ftp://ftp.ora.com/pub/examples/linux/drivers/
- ftp://ar.linux.it/pub/ldd3/
- http://www.cs.fsu.edu/~baker/devices/lxr/http/source/ldd-examples
warning:
LDD(third version) use kernel 2.6.10, so if the version you use is later,
you will not compile the source (from upon link) success.
###How to
- editor source file ( .c .h Makefile ) with vim
makeormake cleanfor compile or cleaninsmod XXX.kofor insert module to kernellsmod | grep XXXfor check module have been inserteddmesg | tailcheck message with printk function by modulermmod XXXremove module
###Manifest
- hello sample for "Hello, world"
- hellop sample for "module parameters"
- scullc sample for "Simple character Utility for Loading Localities"
- netlink sample of using netlink
###LDD for recently kernel Refer this site https://github.com/martinezjavier/ldd3
###Reference