iPXE
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)
 FILE_SECBOOT (PERMITTED)
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 )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ extern_list_add()

void extern_list_add ( struct list_head * new,
struct list_head * head )

Definition at line 35 of file list.c.

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

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 39 of file list.c.

39 {
41}
static void inline_list_add_tail(struct list_head *new, struct list_head *head)
Definition list.h:100

References head, and inline_list_add_tail().

◆ extern_list_del()

void extern_list_del ( struct list_head * list)

Definition at line 43 of file list.c.

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

References inline_list_del().

◆ extern_list_empty()

int extern_list_empty ( const struct list_head * list)

Definition at line 47 of file list.c.

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

References inline_list_empty().

◆ extern_list_is_singular()

int extern_list_is_singular ( const struct list_head * list)

Definition at line 51 of file list.c.

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

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 55 of file list.c.

56 {
57 return inline_list_is_last ( list, head );
58}
static int inline_list_is_last(const struct list_head *list, const struct list_head *head)
Definition list.h:168

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 60 of file list.c.

62 {
63 inline_list_cut_position ( new, list, entry );
64}
static void inline_list_cut_position(struct list_head *new, struct list_head *list, struct list_head *entry)
Definition list.h:193

References inline_list_cut_position().

◆ extern_list_splice()

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

Definition at line 66 of file list.c.

67 {
68 inline_list_splice ( list, entry );
69}
static void inline_list_splice(const struct list_head *list, struct list_head *entry)
Definition list.h:226

References inline_list_splice().

◆ extern_list_splice_tail()

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

Definition at line 71 of file list.c.

72 {
73 inline_list_splice_tail ( list, entry );
74}
static void inline_list_splice_tail(const struct list_head *list, struct list_head *entry)
Definition list.h:256

References inline_list_splice_tail().

◆ extern_list_splice_init()

void extern_list_splice_init ( struct list_head * list,
struct list_head * entry )

Definition at line 76 of file list.c.

77 {
78 inline_list_splice_init ( list, entry );
79}
static void inline_list_splice_init(struct list_head *list, struct list_head *entry)
Definition list.h:284

References 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 81 of file list.c.

82 {
83 inline_list_splice_tail_init ( list, entry );
84}
static void inline_list_splice_tail_init(struct list_head *list, struct list_head *entry)
Definition list.h:306

References inline_list_splice_tail_init().

◆ extern_list_contains()

int extern_list_contains ( struct list_head * entry,
struct list_head * head )

Definition at line 86 of file list.c.

87 {
88 return inline_list_contains ( entry, head );
89}
static int inline_list_contains(struct list_head *entry, struct list_head *head)
Definition list.h:520

References head, and inline_list_contains().