Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_page.h
Show First 20 Lines • Show All 536 Lines • ▼ Show 20 Lines | |||||
#define VM_ALLOC_INTERRUPT 1 | #define VM_ALLOC_INTERRUPT 1 | ||||
#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 /* (acn) Sleep and retry */ | #define VM_ALLOC_WAITOK 0x0008 /* (acn) Sleep and retry */ | ||||
#define VM_ALLOC_WAITFAIL 0x0010 /* (acn) Sleep and return error */ | #define VM_ALLOC_WAITFAIL 0x0010 /* (acn) Sleep and return error */ | ||||
#define VM_ALLOC_WIRED 0x0020 /* (acgnp) Allocate a wired page */ | #define VM_ALLOC_WIRED 0x0020 /* (acgnp) Allocate a wired page */ | ||||
#define VM_ALLOC_ZERO 0x0040 /* (acgnp) Allocate a zeroed page */ | #define VM_ALLOC_ZERO 0x0040 /* (acgnp) Allocate a zeroed page */ | ||||
#define VM_ALLOC_NORECLAIM 0x0080 /* (c) Do not reclaim after failure */ | #define VM_ALLOC_NORECLAIM 0x0080 /* (c) Do not reclaim after failure */ | ||||
#define VM_ALLOC_NOOBJ 0x0100 /* (acg) No associated object */ | #define VM_ALLOC_AVAIL0 0x0100 | ||||
kib: I would leave this flag under some name like VM_AVAIL0, mostly because all flags bits are… | |||||
Done Inline Actions0x800 is unused too. markj: 0x800 is unused too. | |||||
#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_NOCREAT 0x0400 /* (gp) Don't create a page */ | #define VM_ALLOC_NOCREAT 0x0400 /* (gp) Don't create a page */ | ||||
#define VM_ALLOC_AVAIL1 0x0800 | |||||
#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 /* (acgnp) Do not sleep */ | #define VM_ALLOC_NOWAIT 0x8000 /* (acgnp) Do not sleep */ | ||||
#define VM_ALLOC_COUNT_MAX 0xffff | #define VM_ALLOC_COUNT_MAX 0xffff | ||||
#define VM_ALLOC_COUNT_SHIFT 16 | #define VM_ALLOC_COUNT_SHIFT 16 | ||||
#define VM_ALLOC_COUNT_MASK (VM_ALLOC_COUNT(VM_ALLOC_COUNT_MAX)) | #define VM_ALLOC_COUNT_MASK (VM_ALLOC_COUNT(VM_ALLOC_COUNT_MAX)) | ||||
#define VM_ALLOC_COUNT(count) ({ \ | #define VM_ALLOC_COUNT(count) ({ \ | ||||
▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines |
I would leave this flag under some name like VM_AVAIL0, mostly because all flags bits are already consumed.