1LIST_FIRST_ENTRY(9) Data Types LIST_FIRST_ENTRY(9)
23
4
NAME
6list_first_entry - get the first element from a list
7
SYNOPSIS
9list_first_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. November 2011 LIST_FIRST_ENTRY(9)