'\" t .\" Title: list_last_entry .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Data Types .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "LIST_LAST_ENTRY" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Data Types" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" list_last_entry \- get the last element from a list .SH "SYNOPSIS" .HP \w'list_last_entry('u .BI "list_last_entry(" "ptr" ", " "type" ", " "member" ");" .SH "ARGUMENTS" .PP \fIptr\fR .RS 4 the list head to take the element from\&. .RE .PP \fItype\fR .RS 4 the type of the struct this is embedded in\&. .RE .PP \fImember\fR .RS 4 the name of the list_head within the struct\&. .RE .SH "DESCRIPTION" .PP Note, that list is expected to be not empty\&. .SH "COPYRIGHT" .br