1 ## How to code kernel modules for DF
4 * Main kernel directory: /usr/src/sys/kern
7 * General coding guidelines: man style
9 ### Example: Loading a module
11 cd /usr/src/sys/vfs/portal
17 # look at module footprint
27 # look at module footprint
33 ### Important functions
35 * kprintf("Message, displayed in dmesg");
38 How can you see the debug output of a module?
40 How can you redirect the debug output to dmesg?
42 Which debug output facility you should use (not dmesg?) to look at messages from a module?