1 ## Please edit system and help pages ONLY in the moinmaster wiki! For more
2 ## information, please see MoinMaster:MoinPagesEditorGroup.
3 ##acl MoinPagesEditorGroup:read,write,delete,revert All:read
4 ##master-page:HelpTemplate
7 ## How to code kernel modules for DF
10 * Main kernel directory: /usr/src/sys/kern
13 * General coding guidelines: man style
15 ### Example: Loading a module
17 cd /usr/src/sys/vfs/portal
23 # look at module footprint
33 # look at module footprint
39 ### Important functions
41 * kprintf("Message, displayed in dmesg");
44 How can you see the debug output of a module?
46 How can you redirect the debug output to dmesg?
48 Which debug output facility you should use (not dmesg?) to look at messages from a module?