1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter 10. Routines and Conventions</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Unreliable Guide To Hacking The Linux Kernel"><link rel="up" href="index.html" title="Unreliable Guide To Hacking The Linux Kernel"><link rel="prev" href="sym-exportsymbols-gpl.html" title="EXPORT_SYMBOL_GPL() include/linux/export.h"><link rel="next" href="convention-returns.html" title="Return Conventions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 10. Routines and Conventions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sym-exportsymbols-gpl.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="convention-returns.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="conventions"></a>Chapter 10. Routines and Conventions</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="conventions.html#conventions-doublelinkedlist">Double-linked lists 2 <code class="filename">include/linux/list.h</code></a></span></dt><dt><span class="sect1"><a href="convention-returns.html">Return Conventions</a></span></dt><dt><span class="sect1"><a href="conventions-borkedcompile.html">Breaking Compilation</a></span></dt><dt><span class="sect1"><a href="conventions-initialising.html">Initializing structure members</a></span></dt><dt><span class="sect1"><a href="conventions-gnu-extns.html">GNU Extensions</a></span></dt><dt><span class="sect1"><a href="conventions-cplusplus.html">C++</a></span></dt><dt><span class="sect1"><a href="conventions-ifdef.html">#if</a></span></dt></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="conventions-doublelinkedlist"></a>Double-linked lists 3 <code class="filename">include/linux/list.h</code></h2></div></div></div><p> 4 There used to be three sets of linked-list routines in the kernel 5 headers, but this one is the winner. If you don't have some 6 particular pressing need for a single list, it's a good choice. 7 </p><p> 8 In particular, <code class="function">list_for_each_entry</code> is useful. 9 </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sym-exportsymbols-gpl.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="convention-returns.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><code class="function">EXPORT_SYMBOL_GPL()</code> 10 <code class="filename">include/linux/export.h</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Return Conventions</td></tr></table></div></body></html> 11