Coda Distributed File System
Classes | Macros | Functions
dllist.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dllist_head
 

Macros

#define dllist_chain   dllist_head
 
#define DLLIST_HEAD(x)   struct dllist_head x = { &x, &x }
 
#define list_entry(ptr, type, member)    ((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->member)))
 

Functions

int list_empty (struct dllist_head *head)
 
void list_del (struct dllist_head *entry)
 
void list_add (struct dllist_head *entry, struct dllist_head *head)
 
void list_head_init (struct dllist_head *ptr)
 

Macro Definition Documentation

◆ dllist_chain

#define dllist_chain   dllist_head

◆ DLLIST_HEAD

#define DLLIST_HEAD (   x)    struct dllist_head x = { &x, &x }

◆ list_entry

#define list_entry (   ptr,
  type,
  member 
)     ((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->member)))

Function Documentation

◆ list_add()

void list_add ( struct dllist_head entry,
struct dllist_head head 
)

◆ list_del()

void list_del ( struct dllist_head entry)

◆ list_empty()

int list_empty ( struct dllist_head head)

◆ list_head_init()

void list_head_init ( struct dllist_head ptr)