Home
last modified time | relevance | path

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

/kernel/
Dsignal.c91 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 …]
Dexit.c142 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 …]
Dfork.c805 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 …]
Dsys.c1009 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 …]
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()
Dtaskstats.c209 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()
Dacct.c417 struct pacct_struct *pacct = &current->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 = &current->signal->pacct; in acct_collect()
Dpid.c325 &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()
Dptrace.c146 (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()
Dseccomp.c487 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex)); in seccomp_can_sync_threads()
584 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex)); in seccomp_sync_threads()
1272 (atomic_read(&current->signal->live) == 1)) { in __seccomp_filter()
1858 mutex_lock_killable(&current->signal->cred_guard_mutex)) in seccomp_set_mode_filter()
1881 mutex_unlock(&current->signal->cred_guard_mutex); in seccomp_set_mode_filter()
Daudit.c1504 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(&current->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()
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.c269 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 …]
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.c17 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()
Dautogroup.h33 return p->signal->autogroup->tg; in autogroup_task_group()
Dcputime.c316 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/
Dcore.c12491 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/
Dcgroup.c4764 !atomic_read(&task->signal->live)) in css_task_iter_advance()