|
PatchworkOS
|
A doubly linked list. More...
#include <list.h>
Data Fields | |
| list_entry_t | head |
| uint64_t | length |
| The number of elements in the list (excluding the head). | |
A doubly linked list.
This structure simplifies reasoning around linked lists.
| list_entry_t list_t::head |
The head of the list, where head::prev is the last entry of the list and head::next is the first entry of the list.
Definition at line 52 of file list.h.
Referenced by list_first(), list_init(), list_is_empty(), list_last(), list_pop(), list_push(), and list_remove().
| uint64_t list_t::length |
The number of elements in the list (excluding the head).
Definition at line 54 of file list.h.
Referenced by list_add(), list_init(), list_is_empty(), list_length(), and list_remove().