Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_umtx.c
Show First 20 Lines • Show All 235 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 robust mutexes per 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, 0, "umtx debug"); | static SYSCTL_NODE(_debug, OID_AUTO, umtx, CTLFLAG_RW, 0, "umtx debug"); | ||||
SYSCTL_INT(_debug_umtx, OID_AUTO, umtx_pi_allocated, CTLFLAG_RD, | SYSCTL_INT(_debug_umtx, OID_AUTO, umtx_pi_allocated, CTLFLAG_RD, | ||||
▲ Show 20 Lines • Show All 4,324 Lines • Show Last 20 Lines |