Lines Matching refs:uthread
85 struct uthread *uthread;
96 uthread = get_bsdthread_info(thread);
99 if (!(uthread->uu_flag & UT_VFORK))
127 vt = (void *)uthread->uu_arg;
132 assert((unsigned) callp->sy_arg_bytes <= sizeof (uthread->uu_arg));
171 kauth_cred_uthread_update(uthread, p);
173 uthread->uu_rval[0] = 0;
174 uthread->uu_rval[1] = regs->edx;
175 uthread->uu_flag |= UT_NOTCANCELPT;
179 uthread->uu_iocount = 0;
180 uthread->uu_vpindex = 0;
183 AUDIT_SYSCALL_ENTER(code, p, uthread);
184 error = (*(callp->sy_call))((void *) p, (void *) vt, &(uthread->uu_rval[0]));
185 AUDIT_SYSCALL_EXIT(code, p, uthread, error);
188 if (uthread->uu_iocount)
192 uthread->t_dtrace_errno = error;
213 regs->eax = uthread->uu_rval[0];
214 regs->edx = uthread->uu_rval[1];
218 uthread->uu_flag &= ~UT_NOTCANCELPT;
225 if (uthread->uu_lowpri_window) {
237 error, uthread->uu_rval[0], uthread->uu_rval[1], 0, 0);
254 struct uthread *uthread;
264 uthread = get_bsdthread_info(thread);
267 if (!(uthread->uu_flag & UT_VFORK))
335 kauth_cred_uthread_update(uthread, p);
337 uthread->uu_rval[0] = 0;
338 uthread->uu_rval[1] = 0;
341 uthread->uu_flag |= UT_NOTCANCELPT;
344 AUDIT_SYSCALL_ENTER(code, p, uthread);
345 error = (*(callp->sy_call))((void *) p, uargp, &(uthread->uu_rval[0]));
346 AUDIT_SYSCALL_EXIT(code, p, uthread, error);
349 uthread->t_dtrace_errno = error;
368 regs->rax = uthread->uu_rval[0];
369 regs->rdx = uthread->uu_rval[1];
372 regs->rax = ((u_int)uthread->uu_rval[0]);
373 regs->rdx = ((u_int)uthread->uu_rval[1]);
379 regs->rax = *((uint64_t *)(&uthread->uu_rval[0]));
393 uthread->uu_flag &= ~UT_NOTCANCELPT;
400 if (uthread->uu_lowpri_window) {
412 error, uthread->uu_rval[0], uthread->uu_rval[1], 0, 0);
423 struct uthread *uthread;
430 uthread = get_bsdthread_info(thread);
452 dtrace_systrace_syscall_return( code, error, uthread->uu_rval );
471 regs->rax = uthread->uu_rval[0];
472 regs->rdx = uthread->uu_rval[1];
475 regs->rax = ((u_int)uthread->uu_rval[0]);
476 regs->rdx = ((u_int)uthread->uu_rval[1]);
482 regs->rax = *((uint64_t *)(&uthread->uu_rval[0]));
506 dtrace_systrace_syscall_return( code, error, uthread->uu_rval );
521 regs->eax = uthread->uu_rval[0];
522 regs->edx = uthread->uu_rval[1];
528 uthread->uu_flag &= ~UT_NOTCANCELPT;
535 if (uthread->uu_lowpri_window) {
547 error, uthread->uu_rval[0], uthread->uu_rval[1], 0, 0);