iPXE
Functions
list.c File Reference

Linked lists. More...

#include <ipxe/list.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
void extern_list_add (struct list_head *new, struct list_head *head)
 
void extern_list_add_tail (struct list_head *new, struct list_head *head)
 
void extern_list_del (struct list_head *list)
 
int extern_list_empty (const struct list_head *list)
 
int extern_list_is_singular (const struct list_head *list)
 
int extern_list_is_last (const struct list_head *list, const struct list_head *head)
 
void extern_list_cut_position (struct list_head *new, struct list_head *list, struct list_head *entry)
 
void extern_list_splice (const struct list_head *list, struct list_head *entry)
 
void extern_list_splice_tail (const struct list_head *list, struct list_head *entry)
 
void extern_list_splice_init (struct list_head *list, struct list_head *entry)
 
void extern_list_splice_tail_init (struct list_head *list, struct list_head *entry)
 
int extern_list_contains (struct list_head *entry, struct list_head *head)
 

Detailed Description

Linked lists.

Definition in file list.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ extern_list_add()

void extern_list_add ( struct list_head new,
struct list_head head 
)

Definition at line 34 of file list.c.

34  {
35  inline_list_add ( new, head );
36 }
static void inline_list_add(struct list_head *new, struct list_head *head)
Definition: list.h:75
uint8_t head
Head number.
Definition: int13.h:34

References head, and inline_list_add().

◆ extern_list_add_tail()

void extern_list_add_tail ( struct list_head new,
struct list_head head 
)

Definition at line 38 of file list.c.

38  {
39  inline_list_add_tail ( new, head );
40 }
uint8_t head
Head number.
Definition: int13.h:34
static void inline_list_add_tail(struct list_head *new, struct list_head *head)
Definition: list.h:99

References head, and inline_list_add_tail().

◆ extern_list_del()

void extern_list_del ( struct list_head list)

Definition at line 42 of file list.c.

42  {
43  inline_list_del ( list );
44 }
static void inline_list_del(struct list_head *list)
Definition: list.h:123

References inline_list_del().

◆ extern_list_empty()

int extern_list_empty ( const struct list_head list)

Definition at line 46 of file list.c.

46  {
47  return inline_list_empty ( list );
48 }
static int inline_list_empty(const struct list_head *list)
Definition: list.h:139

References inline_list_empty().

◆ extern_list_is_singular()

int extern_list_is_singular ( const struct list_head list)

Definition at line 50 of file list.c.

50  {
51  return inline_list_is_singular ( list );
52 }
static int inline_list_is_singular(const struct list_head *list)
Definition: list.h:152

References inline_list_is_singular().

◆ extern_list_is_last()

int extern_list_is_last ( const struct list_head list,
const struct list_head head 
)

Definition at line 54 of file list.c.

55  {
56  return inline_list_is_last ( list, head );
57 }
uint8_t head
Head number.
Definition: int13.h:34
static int inline_list_is_last(const struct list_head *list, const struct list_head *head)
Definition: list.h:167

References head, and inline_list_is_last().

◆ extern_list_cut_position()

void extern_list_cut_position ( struct list_head new,
struct list_head list,
struct list_head entry 
)

Definition at line 59 of file list.c.

61  {
62  inline_list_cut_position ( new, list, entry );
63 }
static void inline_list_cut_position(struct list_head *new, struct list_head *list, struct list_head *entry)
Definition: list.h:192
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26

References entry, and inline_list_cut_position().

◆ extern_list_splice()

void extern_list_splice ( const struct list_head list,
struct list_head entry 
)

Definition at line 65 of file list.c.

66  {
67  inline_list_splice ( list, entry );
68 }
static void inline_list_splice(const struct list_head *list, struct list_head *entry)
Definition: list.h:225
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26

References entry, and inline_list_splice().

◆ extern_list_splice_tail()

void extern_list_splice_tail ( const struct list_head list,
struct list_head entry 
)

Definition at line 70 of file list.c.

71  {
73 }
static void inline_list_splice_tail(const struct list_head *list, struct list_head *entry)
Definition: list.h:255
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26

References entry, and inline_list_splice_tail().

◆ extern_list_splice_init()

void extern_list_splice_init ( struct list_head list,
struct list_head entry 
)

Definition at line 75 of file list.c.

76  {
78 }
static void inline_list_splice_init(struct list_head *list, struct list_head *entry)
Definition: list.h:283
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26

References entry, and inline_list_splice_init().

◆ extern_list_splice_tail_init()

void extern_list_splice_tail_init ( struct list_head list,
struct list_head entry 
)

Definition at line 80 of file list.c.

81  {
83 }
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26
static void inline_list_splice_tail_init(struct list_head *list, struct list_head *entry)
Definition: list.h:305

References entry, and inline_list_splice_tail_init().

◆ extern_list_contains()

int extern_list_contains ( struct list_head entry,
struct list_head head 
)

Definition at line 85 of file list.c.

86  {
87  return inline_list_contains ( entry, head );
88 }
uint8_t head
Head number.
Definition: int13.h:34
static int inline_list_contains(struct list_head *entry, struct list_head *head)
Definition: list.h:492
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26

References entry, head, and inline_list_contains().