/kernel/ |
D | signal.c | 91 if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) && in sig_task_ignored() 128 static inline bool has_pending_signals(sigset_t *signal, sigset_t *blocked) in has_pending_signals() argument 136 ready |= signal->sig[i] &~ blocked->sig[i]; in has_pending_signals() 139 case 4: ready = signal->sig[3] &~ blocked->sig[3]; in has_pending_signals() 140 ready |= signal->sig[2] &~ blocked->sig[2]; in has_pending_signals() 141 ready |= signal->sig[1] &~ blocked->sig[1]; in has_pending_signals() 142 ready |= signal->sig[0] &~ blocked->sig[0]; in has_pending_signals() 145 case 2: ready = signal->sig[1] &~ blocked->sig[1]; in has_pending_signals() 146 ready |= signal->sig[0] &~ blocked->sig[0]; in has_pending_signals() 149 case 1: ready = signal->sig[0] &~ blocked->sig[0]; in has_pending_signals() [all …]
|
D | exit.c | 142 struct signal_struct *sig = tsk->signal; in __exit_signal() 352 if (p->signal->flags & SIGNAL_STOP_STOPPED) in has_stopped_jobs() 614 if (father->signal->has_child_subreaper) { in find_new_reaper() 629 if (!reaper->signal->is_child_subreaper) in find_new_reaper() 743 if (unlikely(tsk->signal->notify_count < 0)) in exit_notify() 744 wake_up_process(tsk->signal->group_exit_task); in exit_notify() 837 group_dead = atomic_dec_and_test(&tsk->signal->live); in do_exit() 845 tsk->signal->group_exit_code ?: (int)code); in do_exit() 848 hrtimer_cancel(&tsk->signal->real_timer); in do_exit() 852 setmax_mm_hiwater_rss(&tsk->signal->maxrss, tsk->mm); in do_exit() [all …]
|
D | fork.c | 805 put_signal_struct(tsk->signal); in __put_task_struct() 892 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init() 893 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init() 894 init_task.signal->rlim[RLIMIT_SIGPENDING] = in fork_init() 895 init_task.signal->rlim[RLIMIT_NPROC]; in fork_init() 1386 err = down_read_killable(&task->signal->exec_update_lock); in mm_access() 1396 up_read(&task->signal->exec_update_lock); in mm_access() 1461 if (!(tsk->signal->flags & SIGNAL_GROUP_COREDUMP) && in mm_release() 1711 tsk->signal = sig; in copy_signal() 1737 memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); in copy_signal() [all …]
|
D | sys.c | 1009 cutime = current->signal->cutime; in do_sys_times() 1010 cstime = current->signal->cstime; in do_sys_times() 1110 if (p->signal->leader) in SYSCALL_DEFINE2() 1228 if (group_leader->signal->leader) in ksys_setsid() 1237 group_leader->signal->leader = 1; in ksys_setsid() 1520 x = current->signal->rlim[resource]; in SYSCALL_DEFINE2() 1540 r = current->signal->rlim[resource]; in COMPAT_SYSCALL_DEFINE2() 1615 rlim = tsk->signal->rlim + resource; in do_prlimit() 1783 maxrss = p->signal->maxrss; in getrusage() 1793 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 | taskstats.c | 209 if (first->signal->stats) in fill_stats_for_tgid() 210 memcpy(stats, first->signal->stats, sizeof(*stats)); in fill_stats_for_tgid() 259 if (!tsk->signal->stats) in fill_tgid_exit() 268 delayacct_add_tsk(tsk->signal->stats, tsk); in fill_tgid_exit() 552 struct signal_struct *sig = tsk->signal; in taskstats_tgid_alloc() 634 memcpy(stats, tsk->signal->stats, sizeof(*stats)); in taskstats_exit()
|
D | acct.c | 417 struct pacct_struct *pacct = ¤t->signal->pacct; in fill_ac() 459 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac() 484 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process() 525 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process() 536 struct pacct_struct *pacct = ¤t->signal->pacct; in acct_collect()
|
D | pid.c | 325 &task->signal->pids[type]; in task_pid_ptr() 637 ret = down_read_killable(&task->signal->exec_update_lock); in __pidfd_fget() 646 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() 434 if (mutex_lock_interruptible(&task->signal->cred_guard_mutex)) in ptrace_attach() 489 mutex_unlock(&task->signal->cred_guard_mutex); in ptrace_attach() 759 pending = &child->signal->shared_pending; in ptrace_peek_siginfo()
|
D | seccomp.c | 487 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_can_sync_threads() 584 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_sync_threads() 1272 (atomic_read(¤t->signal->live) == 1)) { in __seccomp_filter() 1858 mutex_lock_killable(¤t->signal->cred_guard_mutex)) in seccomp_set_mode_filter() 1881 mutex_unlock(¤t->signal->cred_guard_mutex); in seccomp_set_mode_filter()
|
D | audit.c | 1504 t = READ_ONCE(current->signal->audit_tty); in audit_receive_msg() 1525 t = READ_ONCE(current->signal->audit_tty); in audit_receive_msg() 1528 t = xchg(¤t->signal->audit_tty, t); in audit_receive_msg() 2237 if (current->signal) in audit_get_tty() 2238 tty = tty_kref_get(current->signal->tty); in audit_get_tty()
|
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 | 269 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_sample_cputime() 270 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime() 291 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_start_cputime() 292 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_start_cputime() 336 struct thread_group_cputimer *cputimer = &p->signal->cputimer; in cpu_clock_sample_group() 337 struct posix_cputimers *pct = &p->signal->posix_cputimers; in cpu_clock_sample_group() 418 return tsk->signal->posix_cputimers.bases + clkidx; in timer_base() 543 cleanup_timers(&tsk->signal->posix_cputimers); in posix_cpu_timers_exit_group() 924 tsk->signal->rlim[RLIMIT_RTTIME].rlim_cur = soft; in check_thread_timers() 971 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 | 17 init_task->signal->autogroup = &autogroup_default; in autogroup_init() 57 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get() 144 prev = p->signal->autogroup; in autogroup_move_group() 150 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
|
D | autogroup.h | 33 return p->signal->autogroup->tg; in autogroup_task_group()
|
D | cputime.c | 316 struct signal_struct *sig = tsk->signal; in thread_group_cputime() 651 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()
|
/kernel/events/ |
D | core.c | 12491 err = down_read_interruptible(&task->signal->exec_update_lock); in SYSCALL_DEFINE5() 12670 up_read(&task->signal->exec_update_lock); in SYSCALL_DEFINE5() 12694 up_read(&task->signal->exec_update_lock); in SYSCALL_DEFINE5()
|
/kernel/cgroup/ |
D | cgroup.c | 4764 !atomic_read(&task->signal->live)) in css_task_iter_advance()
|