1LIST_LAST_ENTRY(9) Data Types LIST_LAST_ENTRY(9)
23
4
NAME
6list_last_entry - get the last element from a list
7
SYNOPSIS
9list_last_entry(ptr, type, member);
10
ARGUMENTS
12ptr
13the list head to take the element from.
1415
type
16the type of the struct this is embedded in.
1718
member
19the name of the list_struct within the struct.
20
DESCRIPTION
22Note, that list is expected to be not empty.
23
COPYRIGHT
25Kernel Hackers Manual 2.6. June 2019 LIST_LAST_ENTRY(9)