FreeBSD/sys/nlm/nlm_prot_impl.c
/*
 * Sysctl handler to count the number of client locks for a sysid.
 */
Sysctl handler to count the number of client locks for a sysid.
Sysctl handler to count the number of client locks for a sysid .
static int
nlm_host_client_lock_count_sysctl(SYSCTL_HANDLER_ARGS)
{
	struct nlm_host *host;
	int count;
	host = oidp->oid_arg1;
	count = lf_countlocks(NLM_SYSID_CLIENT | host->nh_sysid);
	return sysctl_handle_int(oidp, &count, 0, req);
}
static int nlm_host_client_lock_count_sysctl ( SYSCTL_HANDLER_ARGS ) { struct nlm_host * host ; int count ; host = oidp -> oid_arg1 ; count = lf_countlocks ( NLM_SYSID_CLIENT | host -> nh_sysid ) ; return sysctl_handle_int ( oidp , & count , 0 , req ) ; }
Sysctl handler to count the number of client locks for a sysid.
Sysctl handler to count the number of client locks for a sysid .