#include <config.h>
Go to the source code of this file.
Namespaces | |
| namespace | cps |
Classes | |
| struct | cps::list_head |
| A list item. More... | |
Defines | |
| #define | _LINUX_LIST_H |
| Prevent multiple inclusion. | |
| #define | LIST_HEAD(name) struct list_head name = { &name, &name } |
| Declare a minimal linked list. | |
| #define | INIT_LIST_HEAD(ptr) |
| Make a list into a minimal linked list. | |
| #define | list_entry(ptr, type, member) ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) |
Functions | |
| void | __list_add (struct list_head *new_item, struct list_head *prev, struct list_head *next) |
| Insert a new entry between two known consecutive entries. | |
| void | list_add (struct list_head *new_item, struct list_head *head) |
| Insert a new entry after the specified list item. | |
| void | __list_del (struct list_head *prev, struct list_head *next) |
| Delete a list entry. | |
| void | list_del (struct list_head *entry) |
| Delete a list entry after the specified list item. | |
| int | list_empty (struct list_head *head) |
| Inquire whether a list is minimal (single link). | |
| void | list_splice (struct list_head *list, struct list_head *head) |
| Insert one list into another. | |
$Id $
Definition in file list.h.
|
|
Prevent multiple inclusion.
|
|
|
Value: do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \ } while (0) Makes the list a single link, pointing to itself Definition at line 49 of file list.h. Referenced by cps::LinkBuffer::ClearAll(), cps::LinkBuffer::ClearBufferedLink(), and cps::LinkBuffer::LinkBuffer(). |
|
|
Definition at line 134 of file list.h. Referenced by cps::LinkBuffer::ClearBufferedLink(), and cps::LinkBuffer::GetBufferedLink(). |
|
|
Declare a minimal linked list. A single link, pointing to itself |
|
||||||||||||||||
|
Insert a new entry between two known consecutive entries. This is only for internal list manipulation where we know the prev/next entries already! Definition at line 59 of file list.h. References cps::list_head::next, and cps::list_head::prev. Referenced by cps::list_add(). |
|
||||||||||||
|
Delete a list entry. by making the prev/next entries point to each other. This is only for internal list manipulation where we know the prev/next entries already! Definition at line 86 of file list.h. References cps::list_head::next, and cps::list_head::prev. Referenced by cps::list_del(). |
|
||||||||||||
|
Insert a new entry after the specified list item.
Definition at line 74 of file list.h. References cps::__list_add(), and cps::list_head::next. Referenced by cps::LinkBuffer::GetBufferedLink(), and cps::LinkBuffer::LinkBuffer(). |
|
|
Delete a list entry after the specified list item.
Definition at line 97 of file list.h. References cps::__list_del(), cps::list_head::next, and cps::list_head::prev. Referenced by cps::LinkBuffer::ClearBufferedLink(), and cps::LinkBuffer::GetBufferedLink(). |
|
|
Inquire whether a list is minimal (single link).
Definition at line 107 of file list.h. References cps::list_head::next. Referenced by cps::LinkBuffer::GetBufferedLink(). |
|
||||||||||||
|
Insert one list into another.
Definition at line 118 of file list.h. References cps::list_head::next, and cps::list_head::prev. Referenced by cps::LinkBuffer::ClearAll(), and cps::LinkBuffer::ClearBufferedLink(). |
1.3.9.1