Lines Matching refs:thread

105 #include <kern/thread.h>
190 static void psignal_internal(proc_t p, task_t task, thread_t thread, int flavor, int signum);
359 * Notes: Uses current thread as a parameter to inform PPC to enable
562 * Notes: The thread parameter is used in the PPC case to select the
563 * thread on which the floating point exception will be enabled
566 * process/thread pair.
568 * We mark thread as unused to alow compilation without warning
572 setsigvec(proc_t p, __unused thread_t thread, int signum, struct __kern_sigaction *sa, boolean_t in_sigstart)
667 execsigs(proc_t p, thread_t thread)
673 ut = (struct uthread *)get_bsdthread_info(thread);
677 * back to the current thread.
708 /* thread */
879 /* if the thread is in vfork do not cancel */
892 * if marked for cancellation, make the thread canceled
900 thread_act_t thread;
904 thread = current_thread();
905 uth = (struct uthread *)get_bsdthread_info(thread);
916 /* if the thread is in vfork do not cancel */
1266 /* The signal was pending on a thread */
1303 /* Clear the pending signal in the thread it was delivered */
1620 * Send a signal caused by a trap to a specific thread.
1711 psignal_internal(proc_t p, task_t task, thread_t thread, int flavor, int signum)
1743 sig_thread = thread;
1746 sig_task = get_threadtask(thread);
1747 sig_thread = thread;
1751 sig_thread = (struct thread *)0;
1759 * do not send signals to the process that has the thread
1760 * doing a reboot(). Not doing so will mark that thread aborted
1777 * Deliver the signal to the first thread in the task. This
1780 * an implicit reference to the current thread, but need
1781 * an explicit one otherwise. The thread reference keeps
1920 r_uid = kauth_getruid(); /* per thread credential; protected by our thread context */
1949 * Wake up the thread, but don't un-suspend it
1964 * signalled process/thread sigaction handler, when it
2158 * Wake up the thread if it is interruptible.
2184 psignal_vfork(proc_t p, task_t new_task, thread_t thread, int signum)
2186 psignal_internal(p, new_task, thread, PSIG_VFORK, signum);
2190 psignal_uthread(thread_t thread, int signum)
2192 psignal_internal(PROC_NULL, TASK_NULL, thread, PSIG_THREAD, signum);
2349 * Since this thread will be resumed
2866 bsd_ast(thread_t thread)
2869 struct uthread *ut = get_bsdthread_info(thread);
3093 panic("proc_signalstart: thread attempting to signal a process for which it holds the signal lock");