Skip to contentSkip to conversation

severeCamelCaseInfestation

DISCUSSION Pankaj Jangra 1 participant 1 message Jul 7, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi Harsh,

Quoted 10 lines · Harsh Kumar

Hi,

1.) What is the naming convention/style for linux kernel? Is camel case not allowed & only snake case is allowed?

I found a TODO in drivers/staging/winbond/TODO which says - fix severeCamelCaseInfestation

2.) If only snake case is to be used, are there any other stipulations (like starting a type of variable name with underscore) ?

3.) I have read Documentation/CodingStyle. Is there any other document on this?

This document is sufficient in my opinion. Also you can check your changes with scripts/checkpatch.pl. This scripts will also help you to learn more.

Regards,
Pankaj Jangra
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs