FreeBSD/sys/geom/sched/g_sched.c
/*
 * Fetch nargs and do appropriate checks.
 */
Fetch nargs and do appropriate checks.
Fetch nargs and do appropriate checks .
static int
g_sched_get_nargs(struct gctl_req *req)
{
	int *nargs;
	nargs = gctl_get_paraml(req, "nargs", sizeof(*nargs));
	if (nargs == NULL) {
		gctl_error(req, "No 'nargs' argument");
		return (0);
	}
	if (*nargs <= 0)
		gctl_error(req, "Missing device(s).");
	return (*nargs);
}
static int g_sched_get_nargs ( struct gctl_req * req ) { int * nargs ; nargs = gctl_get_paraml ( req , " " , sizeof ( * nargs ) ) ; if ( nargs == NULL ) { gctl_error ( req , " " ) ; return ( 0 ) ; } if ( * nargs <= 0 ) gctl_error ( req , " " ) ; return ( * nargs ) ; }
Fetch nargs and do appropriate checks.
Fetch nargs and do appropriate checks .