1LIST_FIRST_ENTRY_OR_(9)           Data Types           LIST_FIRST_ENTRY_OR_(9)
2
3
4

NAME

6       list_first_entry_or_null - get the first element from a list
7

SYNOPSIS

9       list_first_entry_or_null(ptr, type, member);
10

ARGUMENTS

12       ptr
13           the list head to take the element from.
14
15       type
16           the type of the struct this is embedded in.
17
18       member
19           the name of the list_struct within the struct.
20

DESCRIPTION

22       Note that if the list is empty, it returns NULL.
23
25Kernel Hackers Manual 2.6.         June 2019           LIST_FIRST_ENTRY_OR_(9)
Impressum