*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> vm_page_grab (9)              
Title
Content
Arch
Section
 

VM_PAGE_GRAB(9)

Contents


NAME    [Toc]    [Back]

     vm_page_grab -- returns a page from an object

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <vm/vm.h>
     #include <vm/vm_page.h>

     vm_page_t
     vm_page_grab(vm_object_t object, vm_pindex_t pindex, int allocflags);

DESCRIPTION    [Toc]    [Back]

     The vm_page_grab() function returns the page at pindex from the given
     object.  If the page exists and is busy, vm_page_grab() will sleep while
     waiting for it.  If the page does not exist, it is allocated.

     If VM_ALLOC_RETRY is not set in allocflags and the function sleeps,
     either getting the page from the object or while allocating it, NULL is
     returned.

RETURN VALUES    [Toc]    [Back]

     If successful, vm_page_grab() returns the page; otherwise, NULL is
     returned.

SEE ALSO    [Toc]    [Back]

      
      
     vm_page_alloc(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Chad David <[email protected]>.


FreeBSD 5.2.1			August 7, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
XmNotebookGetPageInfo HP-UX A Notebook function that returns page information
vm_page_remove FreeBSD add/remove page from an object
vm_page_insert FreeBSD add/remove page from an object
pmap_object_init_pt FreeBSD initialize page tables for a VM object
isobj IRIX returns whether an object exists
getopenobj IRIX returns the identifier of the currently open object
genobj IRIX returns a unique integer for use as an object identifier
istag IRIX returns whether a tag exists in the current open object
XmGetXmDisplay HP-UX A Display function that returns the XmDisplay object ID for a specified display
XmGetXmDisplay IRIX A Display function that returns the XmDisplay object ID for a specified display
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service