Kernel Normal Form
Kernel normal form, or KNF, is the coding style 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 programming 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.
The SunOS kernel and userland also uses a similar indentation style that was derived from AT&T style documents and that is sometimes known as Bill Joy Normal Form. The correctness of the indentation of a list of source files can be verified by a style checker program written by Bill Shannon. This style checker program is called cstyle.[1]
See also
References
<templatestyles src="Reflist/styles.css" />
Cite error: Invalid <references>
tag; parameter "group" is allowed only.
<references />
, or <references group="..." />
External links
- DragonFly System Kernel Interfaces Manual : Kernel source file style guide –
- FreeBSD Kernel Developer's Manual : Kernel source file style guide –
- MirOS BSD i386 Kernel Internals Manual : Kernel source file style guide –
- OpenBSD Kernel Developer's Manual : Kernel source file style guide –
- The NetBSD source code style guide
- illumos and OpenSolaris Solaris-ON Build manuals Reference Manual from latest Sun based OpenSolaris : SunOS source style guide checker –
- C Style and Coding Standards for SunOS by Bill Shannon
<templatestyles src="Asbox/styles.css"></templatestyles>
- ↑ http://sourceforge.net/projects/schilytools/files/cstyle/ cstyle program sources and documentation