SVR5
getnextpg(D3)
getnextpg --
get next page pointer
Synopsis (Not in current DDI version)
#include <sys/types.h>
#include <vm/page.h>
#include <sys/buf.h>
#include <sys/ddi.h>
page_t *getnextpg(buf_t *bp, page_t *pp);
Description
getnextpg returns a pointer to the next page in a buffer header's
page list [see
buf(D4)]
during a paged-I/O request.
A paged-I/O request is identified by the B_PAGEIO flag
being set in the ``b_flags'' field of the buffer header passed
to a driver's
strategy(D2)
routine.
Given a buffer header, bp, and a pointer to the page, pp,
returned from the previous call to getnextpg, the next
page is returned.
If pp is NULL, the first page in the page list is returned.
Arguments
bp-
Pointer to the buffer header structure.
pp-
Pointer to the previous page structure returned.
Return values
On success, a pointer to the next page structure
in the page list is returned.
If the end of the list is reached, NULL is returned.
Usage
B_PAGEIO won't be set unless the driver has the D_NOBRKUP flag set
[see
devflag(D1).]
Context and synchronization
Non-blockable, interrupt, user, or blockable
context.
Hardware applicability
All
Version applicability
ddi:
3, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp
References
bp_mapin(D3),
bp_mapout(D3),
buf(D4)
devflag(D1),
pptophys(D3),
strategy(D2)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005