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 (1)
| Label | Occurrences |
|---|---|
| Linux kernel coding style canonical | 1 |
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf |
coding style guide
ⓘ
software development guideline ⓘ |
| appliesTo |
C programming language
ⓘ
Linux kernel source code NERFINISHED ⓘ |
| 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
NERFINISHED
ⓘ
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 NERFINISHED ⓘ |
| license | GPL-compatible documentation license ⓘ |
| maintainedBy |
Linux kernel community
NERFINISHED
ⓘ
Linux kernel maintainers ⓘ |
| partOf | Linux kernel development process NERFINISHED ⓘ |
| 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
NERFINISHED
ⓘ
Linux kernel submitting patches documentation ⓘ |
| usedBy |
Linux kernel contributors
ⓘ
Linux kernel subsystem maintainers NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.