Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_umtx.c
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | |||||
int umtx_shm_vnobj_persistent = 0; | int umtx_shm_vnobj_persistent = 0; | ||||
SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_vnode_persistent, CTLFLAG_RWTUN, | SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_vnode_persistent, CTLFLAG_RWTUN, | ||||
&umtx_shm_vnobj_persistent, 0, | &umtx_shm_vnobj_persistent, 0, | ||||
"False forces destruction of umtx attached to file, on last close"); | "False forces destruction of umtx attached to file, on last close"); | ||||
static int umtx_max_rb = 1000; | static int umtx_max_rb = 1000; | ||||
SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_max_robust, CTLFLAG_RWTUN, | SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_max_robust, CTLFLAG_RWTUN, | ||||
&umtx_max_rb, 0, | &umtx_max_rb, 0, | ||||
""); | "Maximum number of robust mutexes allowed for each thread"); | ||||
static uma_zone_t umtx_pi_zone; | static uma_zone_t umtx_pi_zone; | ||||
static struct umtxq_chain umtxq_chains[2][UMTX_CHAINS]; | static struct umtxq_chain umtxq_chains[2][UMTX_CHAINS]; | ||||
static MALLOC_DEFINE(M_UMTX, "umtx", "UMTX queue memory"); | static MALLOC_DEFINE(M_UMTX, "umtx", "UMTX queue memory"); | ||||
static int umtx_pi_allocated; | static int umtx_pi_allocated; | ||||
static SYSCTL_NODE(_debug, OID_AUTO, umtx, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | static SYSCTL_NODE(_debug, OID_AUTO, umtx, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"umtx debug"); | "umtx debug"); | ||||
▲ Show 20 Lines • Show All 4,422 Lines • Show Last 20 Lines |