'\" t .\" Title: relay_switch_subbuf .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: relay interface support .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "RELAY_SWITCH_SUBBUF" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_switch_subbuf \- switch to a new sub\-buffer .SH "SYNOPSIS" .HP \w'size_t\ relay_switch_subbuf('u .BI "size_t relay_switch_subbuf(struct\ rchan_buf\ *\ " "buf" ", size_t\ " "length" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 channel buffer .RE .PP \fIlength\fR .RS 4 size of current event .RE .SH "DESCRIPTION" .PP Returns either the length passed in or 0 if full\&. .PP Performs sub\-buffer\-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc\&. .SH "COPYRIGHT" .br