'\" t .\" Title: i2o_cntxt_list_add .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "I2O_CNTXT_LIST_ADD" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Message-based devices" .\" ----------------------------------------------------------------- .\" * 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" i2o_cntxt_list_add \- Append a pointer to context list and return a id .SH "SYNOPSIS" .HP \w'u32\ i2o_cntxt_list_add('u .BI "u32 i2o_cntxt_list_add(struct\ i2o_controller\ *\ " "c" ", void\ *\ " "ptr" ");" .SH "ARGUMENTS" .PP \fIc\fR .RS 4 controller to which the context list belong .RE .PP \fIptr\fR .RS 4 pointer to add to the context list .RE .SH "DESCRIPTION" .PP Because the context field in I2O is only 32\-bit large, on 64\-bit the pointer is to large to fit in the context field\&. The i2o_cntxt_list functions therefore map pointers to context fields\&. .PP Returns context id > 0 on success or 0 on failure\&. .SH "COPYRIGHT" .br