Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_sleepqueue.c
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | SYSCTL_ADD_UINT(NULL, SYSCTL_CHILDREN(chain_oid), OID_AUTO, | ||||
"depth", CTLFLAG_RD, &sleepq_chains[i].sc_depth, 0, NULL); | "depth", CTLFLAG_RD, &sleepq_chains[i].sc_depth, 0, NULL); | ||||
SYSCTL_ADD_UINT(NULL, SYSCTL_CHILDREN(chain_oid), OID_AUTO, | SYSCTL_ADD_UINT(NULL, SYSCTL_CHILDREN(chain_oid), OID_AUTO, | ||||
"max_depth", CTLFLAG_RD, &sleepq_chains[i].sc_max_depth, 0, | "max_depth", CTLFLAG_RD, &sleepq_chains[i].sc_max_depth, 0, | ||||
NULL); | NULL); | ||||
} | } | ||||
} | } | ||||
SYSINIT(sleepqueue_profiling, SI_SUB_LOCK, SI_ORDER_ANY, | SYSINIT(sleepqueue_profiling, SI_SUB_LOCK, SI_ORDER_ANY, | ||||
init_sleepqueue_profiling, NULL); | init_sleepqueue_profiling); | ||||
#endif | #endif | ||||
/* | /* | ||||
* Early initialization of sleep queues that is called from the sleepinit() | * Early initialization of sleep queues that is called from the sleepinit() | ||||
* SYSINIT. | * SYSINIT. | ||||
*/ | */ | ||||
void | void | ||||
init_sleepqueues(void) | init_sleepqueues(void) | ||||
▲ Show 20 Lines • Show All 1,311 Lines • Show Last 20 Lines |