Linux kernel coding style

E830115

Linux kernel coding style is the official set of formatting and coding conventions that guides how C code should be written and structured in the Linux kernel source tree.

All labels observed (2)

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf coding style guide ⓘ
software development guideline ⓘ
appliesTo C programming language ⓘ
Linux kernel source code ⓘ
linked to: kernel.org
discourages C++ style comments ⓘ
deep nesting of control structures ⓘ
excessive use of macros ⓘ
overly long functions ⓘ
trailing whitespace ⓘ
typedefs for structs and pointers ⓘ
documentedIn Documentation/process/coding-style.rst ⓘ
enforcedBy checkpatch.pl ⓘ
code review ⓘ
goal facilitate code review ⓘ
improve readability of kernel code ⓘ
maintain consistency across the kernel source tree ⓘ
reduce bugs caused by unclear code ⓘ
governs brace placement ⓘ
comment style ⓘ
function layout ⓘ
indentation style ⓘ
line length ⓘ
naming conventions ⓘ
pointer placement ⓘ
spacing around operators ⓘ
use of const ⓘ
use of goto for error handling ⓘ
use of inline functions ⓘ
use of macros ⓘ
use of static ⓘ
use of tabs vs spaces ⓘ
use of typedefs ⓘ
variable naming ⓘ
hasAuthor Linus Torvalds ⓘ
license GPL-compatible documentation license ⓘ
maintainedBy Linux kernel community ⓘ
Linux kernel maintainers ⓘ
partOf Linux kernel development process ⓘ
previouslyDocumentedIn Documentation/CodingStyle ⓘ
recommends CamelCase for some struct types and operations ⓘ
K&R style braces ⓘ
descriptive but short identifiers ⓘ
lowercase with underscores for variable names ⓘ
maximum line length of 80 characters ⓘ
tab width of 8 characters ⓘ
relatedTo Git commit message guidelines for Linux kernel ⓘ
Linux kernel submitting patches documentation ⓘ
usedBy Linux kernel contributors ⓘ
Linux kernel subsystem maintainers ⓘ

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

Linux kernel staging tree → governedBy → Linux kernel coding style ⓘ
Linux kernel subsystem maintainers → follow → Linux kernel coding style guidelines ⓘ
linked to: Linux kernel coding style