FreeBSD/sys/cam/cam_xpt.c
/*
 * Execute the given function for every bus in the EDT.
 */
Execute the given function for every bus in the EDT.
Execute the given function for every bus in the EDT .
static int
xpt_for_all_busses(xpt_busfunc_t *tr_func, void *arg)
{
	struct xpt_traverse_config tr_config;
	tr_config.depth = XPT_DEPTH_BUS;
	tr_config.tr_func = tr_func;
	tr_config.tr_arg = arg;
	return(xptbustraverse(NULL, xptdefbusfunc, &tr_config));
}
static int xpt_for_all_busses ( xpt_busfunc_t * tr_func , void * arg ) { struct xpt_traverse_config tr_config ; tr_config . depth = XPT_DEPTH_BUS ; tr_config . tr_func = tr_func ; tr_config . tr_arg = arg ; return ( xptbustraverse ( NULL , xptdefbusfunc , & tr_config ) ) ; }
Execute the given function for every bus in the EDT.
Execute the given function for every bus in the EDT .