| VM_PAGE_AFLAG(9) | Kernel Developer's Manual | VM_PAGE_AFLAG(9) |
vm_page_aflag_clear,
vm_page_aflag_set,
vm_page_reference — change
page atomic flags
#include
<sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
void
vm_page_aflag_clear(vm_page_t
m, uint8_t
bits);
void
vm_page_aflag_set(vm_page_t
m, uint8_t
bits);
void
vm_page_reference(vm_page_t
m);
The
vm_page_aflag_clear()
atomically clears the specified bits on the page's
aflags.
The
vm_page_aflag_set()
atomically sets the specified bits on the page's
aflags.
The
vm_page_reference(m)
call is the same as
vm_page_aflag_set(m, PGA_REFERENCED);
and is the recommended way to mark the page as referenced from third-party kernel modules.
These functions neither block nor require any locks to be held around the calls for correctness.
The functions arguments are:
The following aflags can be set or cleared:
Both PGA_REFERENCED and
PGA_WRITEABLE bits are only valid for the managed
pages.
This manual page was written by Chad David <davidc@acns.ab.ca>.
| August 31, 2011 | Debian |