Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mman.h
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Return bits from mincore | * Return bits from mincore | ||||
*/ | */ | ||||
#define MINCORE_INCORE 0x1 /* Page is incore */ | #define MINCORE_INCORE 0x1 /* Page is incore */ | ||||
#define MINCORE_REFERENCED 0x2 /* Page has been referenced by us */ | #define MINCORE_REFERENCED 0x2 /* Page has been referenced by us */ | ||||
#define MINCORE_MODIFIED 0x4 /* Page has been modified by us */ | #define MINCORE_MODIFIED 0x4 /* Page has been modified by us */ | ||||
#define MINCORE_REFERENCED_OTHER 0x8 /* Page has been referenced */ | #define MINCORE_REFERENCED_OTHER 0x8 /* Page has been referenced */ | ||||
#define MINCORE_MODIFIED_OTHER 0x10 /* Page has been modified */ | #define MINCORE_MODIFIED_OTHER 0x10 /* Page has been modified */ | ||||
#define MINCORE_SUPER 0x20 /* Page is a "super" page */ | #define MINCORE_SUPER 0x60 /* Page is a "super" page */ | ||||
#define MINCORE_PSIND(i) (((i) << 5) & MINCORE_SUPER) /* Page size */ | |||||
#if defined(_KERNEL) && defined(MAXPAGESIZES) | |||||
kib: May be move it to vm_mmap.c ? It does not make sense to get 32 compiler asserts when doing… | |||||
_Static_assert(MAXPAGESIZES <= 4, "MINCORE_SUPER too narrow"); | |||||
#endif | |||||
/* | /* | ||||
* Anonymous object constant for shm_open(). | * Anonymous object constant for shm_open(). | ||||
*/ | */ | ||||
#define SHM_ANON ((char *)1) | #define SHM_ANON ((char *)1) | ||||
/* | /* | ||||
* shmflags for shm_open2() | * shmflags for shm_open2() | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |
May be move it to vm_mmap.c ? It does not make sense to get 32 compiler asserts when doing parallel build.