Chapter 10. Routines and Conventions

Table of Contents

Double-linked lists include/linux/list.h
Return Conventions
Breaking Compilation
Initializing structure members
GNU Extensions
C++
#if

Double-linked lists include/linux/list.h

There used to be three sets of linked-list routines in the kernel headers, but this one is the winner. If you don't have some particular pressing need for a single list, it's a good choice.

In particular, list_for_each_entry is useful.