/kernel/ |
D | signal.c | 93 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 …]
|
D | exit.c | 146 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 …]
|
D | fork.c | 941 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 …]
|
D | sys.c | 1010 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 …]
|
D | kcmp.c | 159 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()
|
D | acct.c | 436 struct pacct_struct *pacct = ¤t->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 = ¤t->signal->pacct; in acct_collect()
|
D | taskstats.c | 231 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()
|
D | pid.c | 325 &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()
|
D | ptrace.c | 146 (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()
|
D | audit.c | 1502 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(¤t->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()
|
D | seccomp.c | 489 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_can_sync_threads() 586 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_sync_threads() 1298 (atomic_read(¤t->signal->live) == 1)) { in __seccomp_filter() 1895 mutex_lock_killable(¤t->signal->cred_guard_mutex)) in seccomp_set_mode_filter() 1918 mutex_unlock(¤t->signal->cred_guard_mutex); in seccomp_set_mode_filter()
|
D | Makefile | 9 signal.o sys.o umh.o workqueue.o pid.o task_work.o \
|
D | pid_namespace.c | 269 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
|
/kernel/time/ |
D | itimer.c | 51 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()
|
D | posix-cpu-timers.c | 276 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 …]
|
D | posix-timers.c | 134 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, ¤t->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()
|
D | tick-sched.c | 322 if (check_tick_dependency(¤t->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(¤t->signal->tick_dep_mask)) in __tick_nohz_task_switch()
|
/kernel/sched/ |
D | autogroup.c | 38 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()
|
D | autogroup.h | 37 return p->signal->autogroup->tg; in autogroup_task_group()
|
D | cputime.c | 325 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/ |
D | core.c | 12502 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/ |
D | cgroup.c | 4924 !atomic_read(&task->signal->live)) in css_task_iter_advance()
|