Lines Matching refs:uap

96 linux_sys_clone(struct lwp *l, const struct linux_sys_clone_args *uap,
112 if (SCARG(uap, flags) & (LINUX_CLONE_PID|LINUX_CLONE_PTRACE))
119 if (SCARG(uap, flags) & LINUX_CLONE_THREAD
120 && (SCARG(uap, flags) & LINUX_CLONE_SIGHAND) == 0)
122 if (SCARG(uap, flags) & LINUX_CLONE_SIGHAND
123 && (SCARG(uap, flags) & LINUX_CLONE_VM) == 0)
129 if (SCARG(uap, flags) & LINUX_CLONE_THREAD)
130 return linux_clone_nptl(l, uap, retval);
133 if (SCARG(uap, flags) & LINUX_CLONE_VM)
135 if (SCARG(uap, flags) & LINUX_CLONE_FS)
137 if (SCARG(uap, flags) & LINUX_CLONE_FILES)
139 if (SCARG(uap, flags) & LINUX_CLONE_SIGHAND)
141 if (SCARG(uap, flags) & LINUX_CLONE_VFORK)
144 sig = SCARG(uap, flags) & LINUX_CLONE_CSIGNAL;
149 if (SCARG(uap, flags) & LINUX_CLONE_CHILD_SETTID) {
151 led->led_child_tidptr = SCARG(uap, child_tidptr);
160 if ((error = fork1(l, flags, sig, SCARG(uap, stack), 0,
171 linux_sys_clone3(struct lwp *l, const struct linux_sys_clone3_args *uap, register_t *retval)
177 if (SCARG(uap, size) != sizeof(cl_args)) {
182 error = copyin(SCARG(uap, cl_args), &cl_args, SCARG(uap, size));
245 linux_clone_nptl(struct lwp *l, const struct linux_sys_clone_args *uap, register_t *retval)
263 flags = SCARG(uap, flags);
264 parent_tidptr = SCARG(uap, parent_tidptr);
265 tls = SCARG(uap, tls);
266 child_tidptr = SCARG(uap, child_tidptr);
274 SCARG(uap, stack), 0, child_return, NULL, &l2, l->l_class,
446 linux_sys_sched_setparam(struct lwp *l, const struct linux_sys_sched_setparam_args *uap, register_t *retval)
456 if (SCARG(uap, pid) < 0 || SCARG(uap, sp) == NULL) {
461 error = copyin(SCARG(uap, sp), &lp, sizeof(lp));
466 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
477 error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
486 linux_sys_sched_getparam(struct lwp *l, const struct linux_sys_sched_getparam_args *uap, register_t *retval)
496 if (SCARG(uap, pid) < 0 || SCARG(uap, sp) == NULL) {
501 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, &sp);
513 error = copyout(&lp, SCARG(uap, sp), sizeof(lp));
522 linux_sys_sched_setscheduler(struct lwp *l, const struct linux_sys_sched_setscheduler_args *uap, register_t *retval)
533 if (SCARG(uap, pid) < 0 || SCARG(uap, sp) == NULL) {
538 error = copyin(SCARG(uap, sp), &lp, sizeof(lp));
542 __func__, SCARG(uap, policy), lp.sched_priority);
544 error = sched_linux2native(SCARG(uap, policy), &lp, &policy, &sp);
550 error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
559 linux_sys_sched_getscheduler(struct lwp *l, const struct linux_sys_sched_getscheduler_args *uap, register_t *retval)
568 error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
591 linux_sys_sched_get_priority_max(struct lwp *l, const struct linux_sys_sched_get_priority_max_args *uap, register_t *retval)
597 switch (SCARG(uap, policy)) {
613 linux_sys_sched_get_priority_min(struct lwp *l, const struct linux_sys_sched_get_priority_min_args *uap, register_t *retval)
619 switch (SCARG(uap, policy)) {
635 linux_sys_exit(struct lwp *l, const struct linux_sys_exit_args *uap, register_t *retval)
645 linux_sys_exit_group(struct lwp *l, const struct linux_sys_exit_group_args *uap, register_t *retval)
648 return sys_exit(l, (const void *)uap, retval);
653 linux_sys_set_tid_address(struct lwp *l, const struct linux_sys_set_tid_address_args *uap, register_t *retval)
661 led->led_clear_tid = SCARG(uap, tid);
681 linux_sys_sched_getaffinity(struct lwp *l, const struct linux_sys_sched_getaffinity_args *uap, register_t *retval)
696 if (SCARG(uap, len) < size)
699 if (SCARG(uap, pid) == 0) {
704 t = lwp_find2(-1, SCARG(uap, pid));
734 error = kcpuset_copyout(kcset, (cpuset_t *)SCARG(uap, mask), size);
741 linux_sys_sched_setaffinity(struct lwp *l, const struct linux_sys_sched_setaffinity_args *uap, register_t *retval)
754 if (SCARG(uap, len) < size)
757 lid = SCARG(uap, pid);
761 struct proc *p = proc_find_lwpid(SCARG(uap, pid));
776 SCARG(&ssa, cpuset) = (cpuset_t *)SCARG(uap, mask);