Query: vm_page_grab
OS: freebsd
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VM_PAGE_GRAB(9) BSD Kernel Developer's Manual VM_PAGE_GRAB(9)NAMEvm_page_grab -- returns a page from an objectSYNOPSIS#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);DESCRIPTIONThe 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 VALUESThe vm_page_grab() always returns the page.SEE ALSOvm_page_alloc(9)AUTHORSThis manual page was written by Chad David <davidc@acns.ab.ca>.BSDAugust 23, 2013 BSD
Related Man Pages |
---|
vm_page_busy(9) - freebsd |
vm_page_assert_xbusied(9) - freebsd |
vm_page_busy_downgrade(9) - freebsd |
vm_page_remove(9) - freebsd |
vm_page_sbusied(9) - freebsd |
Similar Topics in the Unix Linux Community |
---|
finding out the pid for a busy text file |
CIO/DIO and JFS2 read ahead |
how to write a script to let cpu busy? |
Need to know %age disk busy on AIX |