mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-06 07:02:43 +00:00
add list_empty to linked list primitives
Signed-off-by: Alex Burmashev <alexander.burmashev@oracle.com>
This commit is contained in:
parent
0287b5a864
commit
e6a7fc11a4
@ -32,6 +32,12 @@ typedef struct list_head list_t;
|
||||
(ptr)->prev = (ptr); \
|
||||
})
|
||||
|
||||
static inline int
|
||||
list_empty(const struct list_head *head)
|
||||
{
|
||||
return head->next == head;
|
||||
}
|
||||
|
||||
static inline void
|
||||
__list_add(struct list_head *new, struct list_head *prev,
|
||||
struct list_head *next)
|
||||
|
Loading…
Reference in New Issue
Block a user