'\" t .\" Title: xdr_set_scratch_buffer .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "XDR_SET_SCRATCH_BUFF" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * 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" xdr_set_scratch_buffer \- Attach a scratch buffer for decoding data\&. .SH "SYNOPSIS" .HP \w'void\ xdr_set_scratch_buffer('u .BI "void xdr_set_scratch_buffer(struct\ xdr_stream\ *\ " "xdr" ", void\ *\ " "buf" ", size_t\ " "buflen" ");" .SH "ARGUMENTS" .PP \fIstruct xdr_stream * xdr\fR .RS 4 pointer to xdr_stream struct .RE .PP \fIvoid * buf\fR .RS 4 pointer to an empty buffer .RE .PP \fIsize_t buflen\fR .RS 4 size of \*(Aqbuf\*(Aq .RE .SH "DESCRIPTION" .PP The scratch buffer is used when decoding from an array of pages\&. If an \fBxdr_inline_decode\fR call spans across page boundaries, then we copy the data into the scratch buffer in order to allow linear access\&. .SH "COPYRIGHT" .br