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

NAME

6       list_first_entry - get the first element from a list
7

SYNOPSIS

9       list_first_entry(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 list is expected to be not empty.
23
25Kernel Hackers Manual 3.10         June 2019               LIST_FIRST_ENTRY(9)
Impressum