Linux kernel coding standards


Notes 1. Kernel
Documentation / kernel-doc-nano- HOWTO.txt and script scripts / kernel-doc 

2. Kernel coding standard
scripts / checkpatch.pl coding standard is used to check the drive

3. The core print
<linux / device.h> There are some diagnostic macro-driven model, for the relevant print apparatus: dev_err (), dev_warn () , dev_info ()and many more. And not for a particular device <linux / kernel.h> defines pr_debug () and pr_info ().

Kernel coding specifications: HTTPS: //www.kernel.org/doc/Documentation/process/coding-style.rst

4.kconfig kbuild Makefile Module, header files and export the syntax specifications, see Documentation / kbuild /

 

Guess you like

Origin www.cnblogs.com/hellokitty2/p/11127204.html