Home
last modified time | relevance | path

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

/kernel/
Dsignal.c89 if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) && in sig_task_ignored()
126 static inline bool has_pending_signals(sigset_t *signal, sigset_t *blocked) in has_pending_signals() argument
134 ready |= signal->sig[i] &~ blocked->sig[i]; in has_pending_signals()
137 case 4: ready = signal->sig[3] &~ blocked->sig[3]; in has_pending_signals()
138 ready |= signal->sig[2] &~ blocked->sig[2]; in has_pending_signals()
139 ready |= signal->sig[1] &~ blocked->sig[1]; in has_pending_signals()
140 ready |= signal->sig[0] &~ blocked->sig[0]; in has_pending_signals()
143 case 2: 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 1: ready = signal->sig[0] &~ blocked->sig[0]; in has_pending_signals()
[all …]
Dexit.c141 struct signal_struct *sig = tsk->signal; in __exit_signal()
352 if (p->signal->flags & SIGNAL_STOP_STOPPED) in has_stopped_jobs()
598 if (father->signal->has_child_subreaper) { in find_new_reaper()
613 if (!reaper->signal->is_child_subreaper) in find_new_reaper()
727 if (unlikely(tsk->signal->notify_count < 0)) in exit_notify()
728 wake_up_process(tsk->signal->group_exit_task); in exit_notify()
820 group_dead = atomic_dec_and_test(&tsk->signal->live); in do_exit()
828 tsk->signal->group_exit_code ?: (int)code); in do_exit()
831 hrtimer_cancel(&tsk->signal->real_timer); in do_exit()
832 exit_itimers(tsk->signal); in do_exit()
[all …]
Dfork.c750 put_signal_struct(tsk->signal); in __put_task_struct()
836 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init()
837 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init()
838 init_task.signal->rlim[RLIMIT_SIGPENDING] = in fork_init()
839 init_task.signal->rlim[RLIMIT_NPROC]; in fork_init()
1244 err = mutex_lock_killable(&task->signal->cred_guard_mutex); in mm_access()
1254 mutex_unlock(&task->signal->cred_guard_mutex); in mm_access()
1319 if (!(tsk->signal->flags & SIGNAL_GROUP_COREDUMP) && in mm_release()
1571 tsk->signal = sig; in copy_signal()
1597 memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); in copy_signal()
[all …]
Dkcmp.c176 ret = kcmp_lock(&task1->signal->cred_guard_mutex, in SYSCALL_DEFINE5()
177 &task2->signal->cred_guard_mutex); in SYSCALL_DEFINE5()
232 kcmp_unlock(&task1->signal->cred_guard_mutex, in SYSCALL_DEFINE5()
233 &task2->signal->cred_guard_mutex); in SYSCALL_DEFINE5()
Dacct.c419 struct pacct_struct *pacct = &current->signal->pacct; in fill_ac()
459 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac()
483 flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; in do_acct_process()
484 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
526 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
537 struct pacct_struct *pacct = &current->signal->pacct; in acct_collect()
Dtaskstats.c213 if (first->signal->stats) in fill_stats_for_tgid()
214 memcpy(stats, first->signal->stats, sizeof(*stats)); in fill_stats_for_tgid()
263 if (!tsk->signal->stats) in fill_tgid_exit()
272 delayacct_add_tsk(tsk->signal->stats, tsk); in fill_tgid_exit()
556 struct signal_struct *sig = tsk->signal; in taskstats_tgid_alloc()
638 memcpy(stats, tsk->signal->stats, sizeof(*stats)); in taskstats_exit()
Dsys.c952 cutime = current->signal->cutime; in do_sys_times()
953 cstime = current->signal->cstime; in do_sys_times()
1053 if (p->signal->leader) in SYSCALL_DEFINE2()
1171 if (group_leader->signal->leader) in ksys_setsid()
1180 group_leader->signal->leader = 1; in ksys_setsid()
1463 x = current->signal->rlim[resource]; in SYSCALL_DEFINE2()
1483 r = current->signal->rlim[resource]; in COMPAT_SYSCALL_DEFINE2()
1558 rlim = tsk->signal->rlim + resource; in do_prlimit()
1720 struct signal_struct *sig = p->signal; in getrusage()
2257 if (p->signal->has_child_subreaper || in propagate_has_child_subreaper()
[all …]
Dptrace.c145 (child->signal->flags & SIGNAL_STOP_STOPPED || in __ptrace_unlink()
146 child->signal->group_stop_count)) { in __ptrace_unlink()
433 if (mutex_lock_interruptible(&task->signal->cred_guard_mutex)) in ptrace_attach()
488 mutex_unlock(&task->signal->cred_guard_mutex); in ptrace_attach()
758 pending = &child->signal->shared_pending; in ptrace_peek_siginfo()
Dseccomp.c352 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex)); in seccomp_can_sync_threads()
393 BUG_ON(!mutex_is_locked(&current->signal->cred_guard_mutex)); in seccomp_sync_threads()
1346 mutex_lock_killable(&current->signal->cred_guard_mutex)) in seccomp_set_mode_filter()
1369 mutex_unlock(&current->signal->cred_guard_mutex); in seccomp_set_mode_filter()
Daudit.c1492 t = READ_ONCE(current->signal->audit_tty); in audit_receive_msg()
1513 t = READ_ONCE(current->signal->audit_tty); in audit_receive_msg()
1516 t = xchg(&current->signal->audit_tty, t); in audit_receive_msg()
2179 if (current->signal) in audit_get_tty()
2180 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.c261 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
Dpid.c277 &task->signal->pids[type]; in task_pid_ptr()
/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_timeval(tsk->signal->it_real_incr); in do_getitimer()
148 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in set_cpu_itimer()
198 timer = &tsk->signal->real_timer; in do_setitimer()
202 = ktime_to_timeval(tsk->signal->it_real_incr); in do_setitimer()
212 tsk->signal->it_real_incr = in do_setitimer()
216 tsk->signal->it_real_incr = 0; in do_setitimer()
Dposix-cpu-timers.c279 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_sample_cputime()
280 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime()
301 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_start_cputime()
302 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_start_cputime()
346 struct thread_group_cputimer *cputimer = &p->signal->cputimer; in cpu_clock_sample_group()
347 struct posix_cputimers *pct = &p->signal->posix_cputimers; in cpu_clock_sample_group()
480 cleanup_timers(&tsk->signal->posix_cputimers); in posix_cpu_timers_exit_group()
498 base = p->signal->posix_cputimers.bases + clkidx; in arm_timer()
515 tick_dep_set_signal(p->signal, TICK_DEP_BIT_POSIX_TIMER); in arm_timer()
859 tsk->signal->rlim[RLIMIT_RTTIME].rlim_cur = soft; in check_thread_timers()
[all …]
Dposix-timers.c132 struct signal_struct *sig = current->signal; in posix_timer_by_id()
140 struct signal_struct *sig = current->signal; in posix_timer_add()
535 new_timer->it_signal = current->signal; in do_timer_create()
536 list_add(&new_timer->list, &current->signal->posix_timers); in do_timer_create()
603 if (timr->it_signal == current->signal) { in __lock_timer()
Dtick-sched.c263 if (check_tick_dependency(&current->signal->tick_dep_mask)) in can_stop_full_tick()
431 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.c302 struct signal_struct *sig = tsk->signal; in thread_group_cputime()
687 cputime_adjust(&cputime, &p->signal->prev_cputime, ut, st); in thread_group_cputime_adjusted()
/kernel/events/
Dcore.c11139 err = mutex_lock_interruptible(&task->signal->cred_guard_mutex); in SYSCALL_DEFINE5()
11449 mutex_unlock(&task->signal->cred_guard_mutex); in SYSCALL_DEFINE5()
11485 mutex_unlock(&task->signal->cred_guard_mutex); in SYSCALL_DEFINE5()
/kernel/cgroup/
Dcgroup.c4705 !atomic_read(&task->signal->live)) in css_task_iter_advance()