Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/memguard.c
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | SYSCTL_ADD_UAUTO(NULL, parent, OID_AUTO, "mapstart", | ||||
"MemGuard KVA base"); | "MemGuard KVA base"); | ||||
SYSCTL_ADD_UAUTO(NULL, parent, OID_AUTO, "maplimit", | SYSCTL_ADD_UAUTO(NULL, parent, OID_AUTO, "maplimit", | ||||
CTLFLAG_RD, &memguard_mapsize, | CTLFLAG_RD, &memguard_mapsize, | ||||
"MemGuard KVA size"); | "MemGuard KVA size"); | ||||
SYSCTL_ADD_PROC(NULL, parent, OID_AUTO, "mapused", | SYSCTL_ADD_PROC(NULL, parent, OID_AUTO, "mapused", | ||||
CTLFLAG_RD | CTLFLAG_MPSAFE | CTLTYPE_ULONG, NULL, 0, memguard_sysctl_mapused, "LU", | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLTYPE_ULONG, NULL, 0, memguard_sysctl_mapused, "LU", | ||||
"MemGuard KVA used"); | "MemGuard KVA used"); | ||||
} | } | ||||
SYSINIT(memguard, SI_SUB_KLD, SI_ORDER_ANY, memguard_sysinit, NULL); | SYSINIT(memguard, SI_SUB_KLD, SI_ORDER_ANY, memguard_sysinit); | ||||
/* | /* | ||||
* v2sizep() converts a virtual address of the first page allocated for | * v2sizep() converts a virtual address of the first page allocated for | ||||
* an item to a pointer to u_long recording the size of the original | * an item to a pointer to u_long recording the size of the original | ||||
* allocation request. | * allocation request. | ||||
* | * | ||||
* This routine is very similar to those defined by UMA in uma_int.h. | * This routine is very similar to those defined by UMA in uma_int.h. | ||||
* The difference is that this routine stores the originally allocated | * The difference is that this routine stores the originally allocated | ||||
▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines |