FreeBSD/sys/kern/kern_lockf.c
/*
 * Initialise various structures and locks.
 */
Initialise various structures and locks.
Initialise various structures and locks .
static void
lf_init(void *dummy)
{
	int i;
	sx_init(&lf_lock_states_lock, "lock states lock");
	LIST_INIT(&lf_lock_states);
	sx_init(&lf_lock_owners_lock, "lock owners lock");
	for (i = 0; i < LOCK_OWNER_HASH_SIZE; i++)
		LIST_INIT(&lf_lock_owners[i]);
	sx_init(&lf_owner_graph_lock, "owner graph lock");
	graph_init(&lf_owner_graph);
}
static void lf_init ( void * dummy ) { int i ; sx_init ( & lf_lock_states_lock , " " ) ; LIST_INIT ( & lf_lock_states ) ; sx_init ( & lf_lock_owners_lock , " " ) ; for ( i = 0 ; i < LOCK_OWNER_HASH_SIZE ; i ++ ) LIST_INIT ( & lf_lock_owners [ i ] ) ; sx_init ( & lf_owner_graph_lock , " " ) ; graph_init ( & lf_owner_graph ) ; }
Initialise various structures and locks.
Initialise various structures and locks .