FreeBSD/sys/dev/ixl/ixl_pf_main.c
/*
 * Primarily for finding out how many queues can be assigned to VFs,
 * at runtime.
 */
Primarily for finding out how many queues can be assigned to VFs,
at runtime.
Primarily for finding out how many queues can be assigned to VFs at runtime .
static int
ixl_sysctl_unallocated_queues(SYSCTL_HANDLER_ARGS)
{
	struct ixl_pf *pf = (struct ixl_pf *)arg1;
	int queues;
	IXL_PF_LOCK(pf);
	queues = (int)ixl_pf_qmgr_get_num_free(&pf->qmgr);
	IXL_PF_UNLOCK(pf);
	return sysctl_handle_int(oidp, NULL, queues, req);
}
static int ixl_sysctl_unallocated_queues ( SYSCTL_HANDLER_ARGS ) { struct ixl_pf * pf = ( struct ixl_pf * ) arg1 ; int queues ; IXL_PF_LOCK ( pf ) ; queues = ( int ) ixl_pf_qmgr_get_num_free ( & pf -> qmgr ) ; IXL_PF_UNLOCK ( pf ) ; return sysctl_handle_int ( oidp , NULL , queues , req ) ; }
Primarily for finding out how many queues can be assigned to VFs,
 at runtime.
Primarily for finding out how many queues can be assigned to VFs at runtime .