PatchworkOS
Loading...
Searching...
No Matches
list_t Struct Reference

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).
 

Detailed Description

A doubly linked list.

This structure simplifies reasoning around linked lists.

Definition at line 50 of file list.h.

Field Documentation

◆ head

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().

◆ length

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().


The documentation for this struct was generated from the following file: