xdr_set_scratch_buffer(9)

xdr_set_scratch_buffer9

Attach a scratch buffer for decoding data.

Usage

void xdr_set_scratch_buffer(struct xdr_stream * xdr, void * buf, size_t buflen);

Arguments

xdr

pointer to xdr_stream struct

buf

pointer to an empty buffer

buflen

size of 'buf'

Overview

The scratch buffer is used when decoding from an array of pages. If an xdr_inline_decode call spans across page boundaries, then we copy the data into the scratch buffer in order to allow linear access.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.