Lines Matching defs:policy
139 int error, policy;
152 /* We need the current policy in FreeBSD terms. */
153 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
156 error = sched_native2freebsd(policy, NULL, &policy, NULL);
160 error = sched_freebsd2native(policy, &lp, &policy, &sp);
164 error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
209 syscallarg(int) policy;
212 int error, policy;
225 error = sched_freebsd2native(SCARG(uap, policy), &lp, &policy, &sp);
229 error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
243 int error, policy;
247 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
251 error = sched_native2freebsd(policy, NULL, &policy, NULL);
255 *retval = policy;
273 syscallarg(int) policy;
277 * We can't emulate anything put the default scheduling policy.
279 if (SCARG(uap, policy) != FREEBSD_SCHED_OTHER) {
292 syscallarg(int) policy;
296 * We can't emulate anything put the default scheduling policy.
298 if (SCARG(uap, policy) != FREEBSD_SCHED_OTHER) {