getnextpg(D3) getnextpg(D3)
NAME
getnextpg - get next page pointer
SYNOPSIS
#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);
Arguments
bp Pointer to the buffer header structure.
pp Pointer to the previous page structure returned.
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.
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).]
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
Copyright 1994 Novell, Inc. Page 1
getnextpg(D3) getnextpg(D3)
REFERENCES
bp_mapin(D3), bp_mapout(D3), buf(D4), devflag(D1),
pptophys(D3), strategy(D2)
NOTICES
Portability
All processors
Applicability
ddi: 3, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2