getnextpg(D3X)

getnextpg - get next page pointer

As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.

NAME
     getnextpg - get next page pointer

SYNOPSIS
     #include <sys/types.h>
     #include <sys/pfdat.h>
     #include <sys/ddi.h>
     struct pfdat *getnextpg(buf_t (*bp)(), struct pfdat *pp);

   Arguments
     bp        Pointer to the buffer header structure
     pp        Pointer to the previous pfdat structure returned.

DESCRIPTION
     getnextpg will return a pointer to the next page (pfdat) 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 and the B_MAPPED
     flag being clear 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.

   Level
     Base or Interrupt.

   Notes
     Does not sleep.

   See Also
     strategy(D2), bp_mapin(D3), bp_mapout(D3), pptophys(D3X), buf(D4)