For general advice see: Linux kernel coding style
The following amendments / clarifications are to be considered additionally:
- Kernel-Normal-Form for Function-Blocks Within function blocks the protypes are to be formatted like in KNF Indentions are four spaced:
int
main(int argc, char** argv)
{