coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
list.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  list_node
 

Macros

#define list_for_each(ptr, head, member)
 

Functions

void list_remove (struct list_node *node)
 
void list_insert_after (struct list_node *node, struct list_node *after)
 
void list_insert_before (struct list_node *node, struct list_node *before)
 
void list_append (struct list_node *node, struct list_node *head)
 

Macro Definition Documentation

◆ list_for_each

#define list_for_each (   ptr,
  head,
  member 
)
Value:
for ((ptr) = container_of((head).next, typeof(*(ptr)), member); \
(uintptr_t)ptr + (uintptr_t)offsetof(typeof(*(ptr)), member); \
(ptr) = container_of((ptr)->member.next, \
typeof(*(ptr)), member))
#define offsetof(TYPE, MEMBER)
Definition: helpers.h:84
#define container_of(ptr, type, member)
container_of - cast a member of a structure out to the containing structure
Definition: helpers.h:33
unsigned long uintptr_t
Definition: stdint.h:21

Definition at line 21 of file list.h.

Function Documentation

◆ list_append()

void list_append ( struct list_node node,
struct list_node head 
)

Definition at line 32 of file list.c.

References list_insert_after(), and list_node::next.

Referenced by append_cbfs_preload_context().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list_insert_after()

◆ list_insert_before()

void list_insert_before ( struct list_node node,
struct list_node before 
)

Definition at line 23 of file list.c.

References list_node::next, and list_node::prev.

◆ list_remove()

void list_remove ( struct list_node node)

Definition at line 6 of file list.c.

References list_node::next, and list_node::prev.

Referenced by cbfs_preload_thread_entry(), dt_delete_prop(), dt_platform_fixup(), dt_platform_fixup_mac(), dt_platform_fixup_phy(), and fit_update_memory().

Here is the caller graph for this function: