<story><title>OpenBSD kernel source file style guide</title><url>http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/style.9?query=style&amp;arch=i386</url></story><parent_chain></parent_chain><comment><author>bjackman</author><text>I&amp;#x27;ve never written code with it, but the BSDs use these macros to implement rudimentary generic types in C: &lt;a href=&quot;http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/LIST_EMPTY.3?query=queue&amp;amp;sec=3&amp;amp;arch=i386&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;www.openbsd.org&amp;#x2F;cgi-bin&amp;#x2F;man.cgi&amp;#x2F;OpenBSD-current&amp;#x2F;man3&amp;#x2F;...&lt;/a&gt;. Nice.&lt;p&gt;However, I&amp;#x27;ve only had horrible experiences trying to read the BSDs&amp;#x27; kernel code. There are way too many statements like &amp;quot;mst_fqd-&amp;gt;f_do_skb((struct mfq_t *) q);&amp;quot;</text></comment>
<story><title>OpenBSD kernel source file style guide</title><url>http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/style.9?query=style&amp;arch=i386</url></story><parent_chain></parent_chain><comment><author>feld</author><text>Linux&amp;#x27;s is very long in comparison to the BSD&amp;#x27;s. It seems to have weird edge-cases and possibly unnecessary explanations.&lt;p&gt;&lt;a href=&quot;https://www.kernel.org/doc/Documentation/CodingStyle&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.kernel.org&amp;#x2F;doc&amp;#x2F;Documentation&amp;#x2F;CodingStyle&lt;/a&gt;&lt;p&gt;Example: Why is the comment style different in net&amp;#x2F;? It seems to serve no obvious purpose.&lt;p&gt;Too many cooks :-)</text></comment>