2 ## How to code kernel modules for DF
5 * Main kernel directory: /usr/src/sys/kern
8 * General coding guidelines: man style
10 ### Example: Loading a module
12 cd /usr/src/sys/vfs/portal
18 # look at module footprint
28 # look at module footprint
34 ### Important functions
36 * kprintf("Message, displayed in dmesg");
39 How can you see the debug output of a module?
41 How can you redirect the debug output to dmesg?
43 Which debug output facility you should use (not dmesg?) to look at messages from a module?