Home
last modified time | relevance | path

Searched refs:signal (Results 1 – 22 of 22) sorted by relevance

/kernel/
Dsignal.c93 if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) && in sig_task_ignored()
130 static inline bool has_pending_signals(sigset_t *signal, sigset_t *blocked) in has_pending_signals() argument
138 ready |= signal->sig[i] &~ blocked->sig[i]; in has_pending_signals()
141 case 4: ready = signal->sig[3] &~ blocked->sig[3]; in has_pending_signals()
142 ready |= signal->sig[2] &~ blocked->sig[2]; in has_pending_signals()
143 ready |= signal->sig[1] &~ blocked->sig[1]; in has_pending_signals()
144 ready |= signal->sig[0] &~ blocked->sig[0]; in has_pending_signals()
147 case 2: ready = signal->sig[1] &~ blocked->sig[1]; in has_pending_signals()
148 ready |= signal->sig[0] &~ blocked->sig[0]; in has_pending_signals()
151 case 1: ready = signal->sig[0] &~ blocked->sig[0]; in has_pending_signals()
[all …]
Dexit.c146 struct signal_struct *sig = tsk->signal; in __exit_signal()
362 if (p->signal->flags & SIGNAL_STOP_STOPPED) in has_stopped_jobs()
413 core_state = tsk->signal->core_state; in coredump_task_exit()
629 if (father->signal->has_child_subreaper) { in find_new_reaper()
644 if (!reaper->signal->is_child_subreaper) in find_new_reaper()
758 if (unlikely(tsk->signal->notify_count < 0)) in exit_notify()
759 wake_up_process(tsk->signal->group_exec_task); in exit_notify()
795 struct signal_struct *signal = tsk->signal; in synchronize_group_exit() local
798 signal->quick_threads--; in synchronize_group_exit()
799 if ((signal->quick_threads == 0) && in synchronize_group_exit()
[all …]
Dfork.c941 put_signal_struct(tsk->signal); in __put_task_struct()
1026 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init()
1027 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init()
1028 init_task.signal->rlim[RLIMIT_SIGPENDING] = in fork_init()
1029 init_task.signal->rlim[RLIMIT_NPROC]; in fork_init()
1510 err = down_read_killable(&task->signal->exec_update_lock); in mm_access()
1520 up_read(&task->signal->exec_update_lock); in mm_access()
1804 tsk->signal = sig; in copy_signal()
1831 memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); in copy_signal()
1839 sig->oom_score_adj = current->signal->oom_score_adj; in copy_signal()
[all …]
Dsys.c1010 cutime = current->signal->cutime; in do_sys_times()
1011 cstime = current->signal->cstime; in do_sys_times()
1111 if (p->signal->leader) in SYSCALL_DEFINE2()
1229 if (group_leader->signal->leader) in ksys_setsid()
1238 group_leader->signal->leader = 1; in ksys_setsid()
1469 rlim = tsk->signal->rlim + resource; in do_prlimit()
1587 x = current->signal->rlim[resource]; in SYSCALL_DEFINE2()
1607 r = current->signal->rlim[resource]; in COMPAT_SYSCALL_DEFINE2()
1791 maxrss = p->signal->maxrss; in getrusage()
1801 utime = p->signal->cutime; in getrusage()
[all …]
Dkcmp.c159 ret = kcmp_lock(&task1->signal->exec_update_lock, in SYSCALL_DEFINE5()
160 &task2->signal->exec_update_lock); in SYSCALL_DEFINE5()
215 kcmp_unlock(&task1->signal->exec_update_lock, in SYSCALL_DEFINE5()
216 &task2->signal->exec_update_lock); in SYSCALL_DEFINE5()
Dacct.c436 struct pacct_struct *pacct = &current->signal->pacct; in fill_ac()
478 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac()
503 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
544 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
555 struct pacct_struct *pacct = &current->signal->pacct; in acct_collect()
Dtaskstats.c231 if (first->signal->stats) in fill_stats_for_tgid()
232 memcpy(stats, first->signal->stats, sizeof(*stats)); in fill_stats_for_tgid()
281 if (!tsk->signal->stats) in fill_tgid_exit()
290 delayacct_add_tsk(tsk->signal->stats, tsk); in fill_tgid_exit()
574 struct signal_struct *sig = tsk->signal; in taskstats_tgid_alloc()
658 memcpy(stats, tsk->signal->stats, sizeof(*stats)); in taskstats_exit()
Dpid.c325 &task->signal->pids[type]; in task_pid_ptr()
674 ret = down_read_killable(&task->signal->exec_update_lock); in __pidfd_fget()
683 up_read(&task->signal->exec_update_lock); in __pidfd_fget()
Dptrace.c146 (child->signal->flags & SIGNAL_STOP_STOPPED || in __ptrace_unlink()
147 child->signal->group_stop_count)) { in __ptrace_unlink()
428 if (mutex_lock_interruptible(&task->signal->cred_guard_mutex)) in ptrace_attach()
483 mutex_unlock(&task->signal->cred_guard_mutex); in ptrace_attach()
753 pending = &child->signal->shared_pending; in ptrace_peek_siginfo()
Daudit.c1502 t = READ_ONCE(current->signal->audit_tty); in audit_receive_msg()
1523 t = READ_ONCE(current->signal->audit_tty); in audit_receive_msg()
1526 t = xchg(&current->signal->audit_tty, t); in audit_receive_msg()
2235 if (current->signal) in audit_get_tty()
2236 tty = tty_kref_get(current->signal->tty); in audit_get_tty()
Dseccomp.c489 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex)); in seccomp_can_sync_threads()
586 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex)); in seccomp_sync_threads()
1298 (atomic_read(&current->signal->live) == 1)) { in __seccomp_filter()
1895 mutex_lock_killable(&current->signal->cred_guard_mutex)) in seccomp_set_mode_filter()
1918 mutex_unlock(&current->signal->cred_guard_mutex); in seccomp_set_mode_filter()
DMakefile9 signal.o sys.o umh.o workqueue.o pid.o task_work.o \
Dpid_namespace.c269 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
/kernel/time/
Ditimer.c51 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in get_cpu_itimer()
83 value->it_value = itimer_get_remtime(&tsk->signal->real_timer); in do_getitimer()
85 ktime_to_timespec64(tsk->signal->it_real_incr); in do_getitimer()
173 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in set_cpu_itimer()
217 timer = &tsk->signal->real_timer; in do_setitimer()
221 = ktime_to_timespec64(tsk->signal->it_real_incr); in do_setitimer()
231 tsk->signal->it_real_incr = in do_setitimer()
235 tsk->signal->it_real_incr = 0; in do_setitimer()
Dposix-cpu-timers.c276 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_sample_cputime()
277 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime()
298 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_start_cputime()
299 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_start_cputime()
343 struct thread_group_cputimer *cputimer = &p->signal->cputimer; in cpu_clock_sample_group()
344 struct posix_cputimers *pct = &p->signal->posix_cputimers; in cpu_clock_sample_group()
425 return tsk->signal->posix_cputimers.bases + clkidx; in timer_base()
550 cleanup_timers(&tsk->signal->posix_cputimers); in posix_cpu_timers_exit_group()
931 tsk->signal->rlim[RLIMIT_RTTIME].rlim_cur = soft; in check_thread_timers()
978 struct signal_struct *const sig = tsk->signal; in check_process_timers()
[all …]
Dposix-timers.c134 struct signal_struct *sig = current->signal; in posix_timer_by_id()
142 struct signal_struct *sig = current->signal; in posix_timer_add()
561 new_timer->it_signal = current->signal; in do_timer_create()
562 list_add(&new_timer->list, &current->signal->posix_timers); in do_timer_create()
629 if (timr->it_signal == current->signal) { in __lock_timer()
1092 if (list_empty(&tsk->signal->posix_timers)) in exit_itimers()
1097 list_replace_init(&tsk->signal->posix_timers, &timers); in exit_itimers()
Dtick-sched.c322 if (check_tick_dependency(&current->signal->tick_dep_mask)) in can_stop_full_tick()
503 struct signal_struct *sig = tsk->signal; in tick_nohz_dep_set_signal()
536 atomic_read(&current->signal->tick_dep_mask)) in __tick_nohz_task_switch()
/kernel/sched/
Dautogroup.c38 init_task->signal->autogroup = &autogroup_default; in autogroup_init()
79 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
167 prev = p->signal->autogroup; in autogroup_move_group()
173 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
Dautogroup.h37 return p->signal->autogroup->tg; in autogroup_task_group()
Dcputime.c325 struct signal_struct *sig = tsk->signal; in thread_group_cputime()
666 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()
/kernel/events/
Dcore.c12502 err = down_read_interruptible(&task->signal->exec_update_lock); in SYSCALL_DEFINE5()
12681 up_read(&task->signal->exec_update_lock); in SYSCALL_DEFINE5()
12705 up_read(&task->signal->exec_update_lock); in SYSCALL_DEFINE5()
/kernel/cgroup/
Dcgroup.c4924 !atomic_read(&task->signal->live)) in css_task_iter_advance()