Kernel Normal Form
From Wikipedia, the free encyclopedia
"KNF" redirects here. KNF may also refer to the IATA airport code for RAF Marham.
Kernel normal form, or KNF, is the normal form used in the development of code for the BSD operating systems. Based on the original KNF concept from the Computer Systems Research Group, it dictates a code style to which contributed code should adhere prior to its inclusion into the codebase. KNF started out as a codification of how Ken Thompson and Dennis Ritchie formatted the original UNIX C source code. It describes such things as how to name variables, use indents and the use of ANSI C or K&R C code styles. Each BSD variant has its own KNF rules, which have evolved over time to differ from each other in small ways.
[edit] External links
- OpenBSD Kernel Developer's Manual : Kernel source file style guide (KNF) –
- FreeBSD Kernel Developer's Manual : Kernel source file style guide –
- DragonFly BSD's style(9) (KNF) man page
- MirOS BSD's style(9) (KNF) man page
- NetBSD's style (KNF) example source file