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

NAME

6       list_last_entry - get the last element from a list
7

SYNOPSIS

9       list_last_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 2.6.         June 2019                LIST_LAST_ENTRY(9)
Impressum