on July 19, 2007 - 1:23am
.\" Title: list_first_entry
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.70.1
.\" Date: July 2007
.\" Manual: Data Types
.\" Source: Kernel Hackers Manual 2.6.22
.\"
.TH "LIST_FIRST_ENTRY" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Data Types"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
list_first_entry \- get the first element from a list
.SH "SYNOPSIS"
.HP 17
.BI "list_first_entry(" "ptr" ", " "type" ", " "member" ");"
.SH "ARGUMENTS"
.TP 3n
\fIptr\fR
the list head to take the element from.
.TP 3n
\fItype\fR
the type of the struct this is embedded in.
.TP 3n
\fImember\fR
the name of the list_struct within the struct.
.SH "DESCRIPTION"
.PP
Note, that list is expected to be not empty.
.SH "COPYRIGHT"