Lines Matching refs:thread

186 			thread_t	thread);
202 #include <kern/thread.h>
623 * For vfork exec, the current implementation has not set up the thread in the
748 thread_t thread;
789 thread = current_thread();
790 uthread = get_bsdthread_info(thread);
842 * operation; in this case, we know that our task, thread, and
856 /* reset local idea of thread, uthread, task */
857 thread = imgp->ip_new_thread;
858 uthread = get_bsdthread_info(thread);
859 task = new_task = get_threadtask(thread);
893 lret = load_machfile(imgp, mach_header, thread, map, &load_result);
952 * deal with voucher on exec-calling thread.
988 thread_setuserstack(thread, ap);
996 ap = thread_adjuserstack(thread, -new_ptr_size);
1015 thread_setentrypoint(thread, load_result.entry_point);
1023 execsigs(p, thread);
1074 * Invalidate any predicate evaluation already cached for this thread by DTrace.
1118 p->p_pid ,0,0,0, (uintptr_t)thread_tid(thread));
1120 dbg_arg1, dbg_arg2, dbg_arg3, dbg_arg4, (uintptr_t)thread_tid(thread));
1167 psignal_vfork(p, new_task, thread, SIGTRAP);
1176 psignal_vfork(p, new_task, thread, SIGKILL);
1195 thread_deallocate(thread);
1289 * sure another thread hasn't started exiting the process. We grab
2137 /* By default, the thread everyone plays with is the parent */
2302 * prior to making the thread runnable in user space. This is
2303 * necessitated by some signal information being per-thread rather
2312 * If we created a new child thread, then the thread and
2347 * Activate the CPU usage monitor, if requested. This is done via a task-wide, per-thread CPU
2348 * usage limit, which will generate a resource exceeded exception if any one thread exceeds the
2443 * This must be done after the exec so that the child's thread is ready,
2456 /* Apply the main thread qos */
2529 * particularly w.r.t. errors, and which thread/process
2544 * here, for compatibility, mark the new thread
2599 * task/thread references to the newly spawned
2602 * with the delayed resume of the thread here.
2760 /* Sever any extant thread affinity */
3753 * Have mach reset the task and thread ports.
3756 * task/thread after.