---
name: "xdr_read_pages"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/xdr_read_pages"
---

# xdr\_read\_pages(9)

Ensure page-based XDR data to decode is aligned at current pointer position

## NAME

xdr\_read\_pages - Ensure page-based XDR data to decode is aligned at current pointer position

## SYNOPSIS

**unsigned int xdr\_read\_pages(struct xdr\_stream \*** *xdr***, unsigned int** *len***);**

## ARGUMENTS

*xdr*

pointer to xdr\_stream struct

*len*

number of bytes of page data

## DESCRIPTION

Moves data beyond the current pointer position from the XDR head\[\] buffer into the page list. Any data that lies beyond current position + “len” bytes is moved into the XDR tail\[\].

Returns the number of XDR encoded bytes now contained in the pages

## COPYRIGHT
