GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  VM_PAGE_GRAB (9)

NAME

vm_page_grab - returns a page from an object

CONTENTS

Synopsis
Description
Return Values
See Also
Authors

SYNOPSIS


.In sys/param.h
.In vm/vm.h
.In vm/vm_page.h vm_page_t vm_page_grab vm_object_t object vm_pindex_t pindex int allocflags

DESCRIPTION

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. The function sleeps until the allocation request can be satisfied.

The function requires the object to be locked on entry, and returns with the object locked. If the vm_page_grab function sleeps for any reason, the object lock is temporary dropped.

The vm_page_grab supports all of the flags supported by vm_page_alloc(9). In addition, vm_page_grab supports the following flags:
VM_ALLOC_IGN_SBUSY
  When waiting for the busy state of the existing page to drain, only test for exclusive busy; ignore the shared busy counter.

RETURN VALUES

The vm_page_grab always returns the page.

SEE ALSO

vm_page_alloc(9)

AUTHORS

This manual page was written by
.An Chad David Aq davidc@acns.ab.ca .
Search for    or go to Top of page |  Section 9 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.