1LIST_FIRST_ENTRY_OR_(9) Data Types LIST_FIRST_ENTRY_OR_(9)
23
4
NAME
6list_first_entry_or_null - get the first element from a list
7
SYNOPSIS
9list_first_entry_or_null(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 if the list is empty, it returns NULL.
23
COPYRIGHT
25Kernel Hackers Manual 3.10 June 2019 LIST_FIRST_ENTRY_OR_(9)