Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_page.h
Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | |||||
#define VM_ALLOC_SYSTEM 2 | #define VM_ALLOC_SYSTEM 2 | ||||
#define VM_ALLOC_CLASS_MASK 3 | #define VM_ALLOC_CLASS_MASK 3 | ||||
#define VM_ALLOC_WAITOK 0x0008 /* (acf) Sleep and retry */ | #define VM_ALLOC_WAITOK 0x0008 /* (acf) Sleep and retry */ | ||||
#define VM_ALLOC_WAITFAIL 0x0010 /* (acf) Sleep and return error */ | #define VM_ALLOC_WAITFAIL 0x0010 /* (acf) Sleep and return error */ | ||||
#define VM_ALLOC_WIRED 0x0020 /* (acfgp) Allocate a wired page */ | #define VM_ALLOC_WIRED 0x0020 /* (acfgp) Allocate a wired page */ | ||||
#define VM_ALLOC_ZERO 0x0040 /* (acfgp) Allocate a prezeroed page */ | #define VM_ALLOC_ZERO 0x0040 /* (acfgp) Allocate a prezeroed page */ | ||||
#define VM_ALLOC_NOOBJ 0x0100 /* (acg) No associated object */ | #define VM_ALLOC_NOOBJ 0x0100 /* (acg) No associated object */ | ||||
#define VM_ALLOC_NOBUSY 0x0200 /* (acgp) Do not excl busy the page */ | #define VM_ALLOC_NOBUSY 0x0200 /* (acgp) Do not excl busy the page */ | ||||
#define VM_ALLOC_VALID 0x0400 /* (gp) Only existing valid pages */ | |||||
#define VM_ALLOC_NOCREAT 0x0800 /* (gp) Don't create a page */ | |||||
#define VM_ALLOC_IGN_SBUSY 0x1000 /* (gp) Ignore shared busy flag */ | #define VM_ALLOC_IGN_SBUSY 0x1000 /* (gp) Ignore shared busy flag */ | ||||
#define VM_ALLOC_NODUMP 0x2000 /* (ag) don't include in dump */ | #define VM_ALLOC_NODUMP 0x2000 /* (ag) don't include in dump */ | ||||
#define VM_ALLOC_SBUSY 0x4000 /* (acgp) Shared busy the page */ | #define VM_ALLOC_SBUSY 0x4000 /* (acgp) Shared busy the page */ | ||||
#define VM_ALLOC_NOWAIT 0x8000 /* (acfgp) Do not sleep */ | #define VM_ALLOC_NOWAIT 0x8000 /* (acfgp) Do not sleep */ | ||||
#define VM_ALLOC_COUNT_SHIFT 16 | #define VM_ALLOC_COUNT_SHIFT 16 | ||||
#define VM_ALLOC_COUNT(count) ((count) << VM_ALLOC_COUNT_SHIFT) | #define VM_ALLOC_COUNT(count) ((count) << VM_ALLOC_COUNT_SHIFT) | ||||
#ifdef M_NOWAIT | #ifdef M_NOWAIT | ||||
Show All 26 Lines | |||||
* However, it can be spuriously false when the (super)page has become | * However, it can be spuriously false when the (super)page has become | ||||
* dirty in the pmap but that information has not been propagated to the | * dirty in the pmap but that information has not been propagated to the | ||||
* machine-independent layer. | * machine-independent layer. | ||||
*/ | */ | ||||
#define PS_ALL_DIRTY 0x1 | #define PS_ALL_DIRTY 0x1 | ||||
#define PS_ALL_VALID 0x2 | #define PS_ALL_VALID 0x2 | ||||
#define PS_NONE_BUSY 0x4 | #define PS_NONE_BUSY 0x4 | ||||
int vm_page_busy_acquire(vm_page_t m, int allocflags); | |||||
void vm_page_busy_downgrade(vm_page_t m); | void vm_page_busy_downgrade(vm_page_t m); | ||||
void vm_page_busy_sleep(vm_page_t m, const char *msg, bool nonshared); | void vm_page_busy_sleep(vm_page_t m, const char *msg, bool nonshared); | ||||
void vm_page_free(vm_page_t m); | void vm_page_free(vm_page_t m); | ||||
void vm_page_free_zero(vm_page_t m); | void vm_page_free_zero(vm_page_t m); | ||||
void vm_page_activate (vm_page_t); | void vm_page_activate (vm_page_t); | ||||
void vm_page_advise(vm_page_t m, int advice); | void vm_page_advise(vm_page_t m, int advice); | ||||
vm_page_t vm_page_alloc(vm_object_t, vm_pindex_t, int); | vm_page_t vm_page_alloc(vm_object_t, vm_pindex_t, int); | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |