Lines Matching refs:team
298 = thread_get_current_thread()->team->QueuedSignalsCounter(); in CreateQueuable()
318 Team* team = thread_get_current_thread()->team; in SetTo() local
323 fSendingProcess = team->id; in SetTo()
324 fSendingUser = team->effective_uid; in SetTo()
786 update_team_threads_signal_flag(Team* team) in update_team_threads_signal_flag() argument
788 for (Thread* thread = team->thread_list; thread != NULL; in update_team_threads_signal_flag()
858 Team* team = thread->team; in dequeue_thread_or_team_signal() local
860 if (team->HighestPendingSignalPriority(nonBlocked) in dequeue_thread_or_team_signal()
862 signal = team->DequeuePendingSignal(nonBlocked, buffer); in dequeue_thread_or_team_signal()
863 update_team_threads_signal_flag(team); in dequeue_thread_or_team_signal()
915 frameData.commpage_address = thread->team->commpage_address; in setup_signal_frame()
935 Team* team = thread->team; in handle_signals() local
937 TeamLocker teamLocker(team); in handle_signals()
938 InterruptsSpinLocker locker(thread->team->signal_lock); in handle_signals()
1016 handler = team->SignalActionFor(signal->Number()); in handle_signals()
1024 team->SignalActionFor(signal->Number()).sa_handler = SIG_DFL; in handle_signals()
1033 bool debugSignal = (~atomic_get(&team->debug_info.flags) in handle_signals()
1100 if (thread == team->main_thread) { in handle_signals()
1101 team->LockTeamAndParent(false); in handle_signals()
1103 team_set_job_control_state(team, in handle_signals()
1106 team->UnlockTeamAndParent(); in handle_signals()
1127 team->LockProcessGroup(); in handle_signals()
1128 AutoLocker<ProcessGroup> groupLocker(team->group, true); in handle_signals()
1130 && team->group->IsOrphaned()) { in handle_signals()
1135 if (thread == team->main_thread) { in handle_signals()
1136 team->LockTeamAndParent(false); in handle_signals()
1138 team_set_job_control_state(team, in handle_signals()
1143 Team* parentTeam = team->parent; in handle_signals()
1149 team->id); in handle_signals()
1155 team->UnlockTeamAndParent(); in handle_signals()
1190 team->id, signal->Number(), thread->id)); in handle_signals()
1205 if (killTeam || thread == team->main_thread) { in handle_signals()
1211 if (!team->exit.initialized) { in handle_signals()
1212 team->exit.reason = CLD_KILLED; in handle_signals()
1213 team->exit.signal = signal->Number(); in handle_signals()
1214 team->exit.signaling_user = signal->SendingUser(); in handle_signals()
1215 team->exit.status = 0; in handle_signals()
1216 team->exit.initialized = true; in handle_signals()
1223 if (thread != team->main_thread) { in handle_signals()
1225 team->id); in handle_signals()
1226 send_signal_to_thread_id(team->id, childSignal, 0); in handle_signals()
1306 is_team_signal_blocked(Team* team, int signal) in is_team_signal_blocked() argument
1310 for (Thread* thread = team->thread_list; thread != NULL; in is_team_signal_blocked()
1364 has_permission_to_signal(Team* team) in has_permission_to_signal() argument
1367 uid_t currentUser = thread_get_current_thread()->team->effective_uid; in has_permission_to_signal()
1371 return currentUser == 0 || currentUser == team->effective_uid; in has_permission_to_signal()
1405 if (!has_permission_to_signal(thread->team)) in send_signal_to_thread_locked()
1412 if (thread->team == team_get_kernel_team()) { in send_signal_to_thread_locked()
1431 Thread* mainThread = thread->team->main_thread; in send_signal_to_thread_locked()
1551 SpinLocker locker(thread->team->signal_lock); in send_signal_to_thread()
1618 send_signal_to_team_locked(Team* team, uint32 signalNumber, Signal* signal, in send_signal_to_team_locked() argument
1623 T(SendSignal(team->id, signalNumber, flags)); in send_signal_to_team_locked()
1629 if (!has_permission_to_signal(team)) in send_signal_to_team_locked()
1636 if (team == team_get_kernel_team()) { in send_signal_to_team_locked()
1642 team->AddPendingSignal(signal); in send_signal_to_team_locked()
1644 team->AddPendingSignal(signalNumber); in send_signal_to_team_locked()
1656 Thread* mainThread = team->main_thread; in send_signal_to_team_locked()
1675 for (Thread* thread = team->thread_list; thread != NULL; in send_signal_to_team_locked()
1692 team->RemovePendingSignals(STOP_SIGNALS); in send_signal_to_team_locked()
1701 for (Thread* thread = team->thread_list; thread != NULL; in send_signal_to_team_locked()
1708 team->RemovePendingSignal(signal); in send_signal_to_team_locked()
1711 team->RemovePendingSignal(signalNumber); in send_signal_to_team_locked()
1717 for (Thread* thread = team->thread_list; thread != NULL; in send_signal_to_team_locked()
1729 update_team_threads_signal_flag(team); in send_signal_to_team_locked()
1752 send_signal_to_team(Team* team, const Signal& signal, uint32 flags) in send_signal_to_team() argument
1762 InterruptsSpinLocker locker(team->signal_lock); in send_signal_to_team()
1764 error = send_signal_to_team_locked(team, signal.Number(), signalToQueue, in send_signal_to_team()
1796 Team* team = Team::Get(teamID); in send_signal_to_team_id() local
1797 if (team == NULL) in send_signal_to_team_id()
1799 BReference<Team> teamReference(team, true); in send_signal_to_team_id()
1801 return send_signal_to_team(team, signal, flags); in send_signal_to_team_id()
1831 for (Team* team = group->teams; team != NULL; team = team->group_next) { in send_signal_to_process_group_locked() local
1832 status_t error = send_signal_to_team(team, signal, in send_signal_to_process_group_locked()
1906 B_OK, thread->team->id); in send_signal_internal()
1924 return send_signal_to_team_id(thread->team->id, signal, flags); in send_signal_internal()
1958 InterruptsSpinLocker _(thread->team->signal_lock); in sigprocmask_internal()
2007 Team* team = thread_get_current_thread()->team; in sigaction_internal() local
2008 TeamLocker teamLocker(team); in sigaction_internal()
2010 struct sigaction& teamHandler = team->SignalActionFor(signal); in sigaction_internal()
2029 InterruptsSpinLocker locker(team->signal_lock); in sigaction_internal()
2031 team->RemovePendingSignal(signal); in sigaction_internal()
2033 for (Thread* thread = team->thread_list; thread != NULL; in sigaction_internal()
2071 InterruptsSpinLocker locker(thread->team->signal_lock); in sigwait_internal()
2164 InterruptsSpinLocker locker(thread->team->signal_lock); in sigsuspend_internal()
2206 InterruptsSpinLocker locker(thread->team->signal_lock); in sigpending_internal()
2272 B_OK, thread->team->id); in _user_send_signal()
2501 InterruptsSpinLocker locker(thread->team->signal_lock); in _user_restore_signal_frame()