'\" t .\" Title: relay_alloc_buf .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: relay interface support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "RELAY_ALLOC_BUF" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "relay interface support" .\" ----------------------------------------------------------------- .\" * 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" relay_alloc_buf \- allocate a channel buffer .SH "SYNOPSIS" .HP \w'void\ *\ relay_alloc_buf('u .BI "void * relay_alloc_buf(struct\ rchan_buf\ *\ " "buf" ", size_t\ *\ " "size" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 the buffer struct .RE .PP \fIsize\fR .RS 4 total size of the buffer .RE .SH "DESCRIPTION" .PP Returns a pointer to the resulting buffer, \fBNULL\fR if unsuccessful\&. The passed in size will get page aligned, if it isn\*(Aqt already\&. .SH "COPYRIGHT" .br