'\" t .\" Title: list_add .\" 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_ADD" "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_add \- add a new entry .SH "SYNOPSIS" .HP \w'void\ list_add('u .BI "void list_add(struct\ list_head\ *\ " "new" ", struct\ list_head\ *\ " "head" ");" .SH "ARGUMENTS" .PP \fInew\fR .RS 4 new entry to be added .RE .PP \fIhead\fR .RS 4 list head to add it after .RE .SH "DESCRIPTION" .PP Insert a new entry after the specified head\&. This is good for implementing stacks\&. .SH "COPYRIGHT" .br