Coda Distributed File System
|
#include "coda_offsetof.h"
Go to the source code of this file.
Classes | |
struct | dllist_head |
Macros | |
#define | INIT_LIST_HEAD(name) struct dllist_head name = { &name, &name } |
#define | list_entry(ptr, type, member) ((type *)((char *)(ptr) - offsetof(type, member))) |
#define | list_entry_plusplus(ptr, type, member) ((type *)((char *)(ptr) - coda_offsetof(type, member))) |
#define | list_for_each(ptr, head) for (ptr = (head).next; ptr != &(head); ptr = ptr->next) |
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) |
#define list_entry_plusplus | ( | ptr, | |
type, | |||
member | |||
) | ((type *)((char *)(ptr) - coda_offsetof(type, member))) |
void list_add | ( | struct dllist_head * | entry, |
struct dllist_head * | head | ||
) |
void list_del | ( | struct dllist_head * | entry | ) |
int list_empty | ( | struct dllist_head * | head | ) |
void list_head_init | ( | struct dllist_head * | ptr | ) |