Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 13 of 13) sorted by relevance

/kernel/
Dsignal.c46 static void __user *sig_handler(struct task_struct *t, int sig) in sig_handler() argument
48 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
51 static int sig_handler_ignored(void __user *handler, int sig) in sig_handler_ignored() argument
55 (handler == SIG_DFL && sig_kernel_ignore(sig)); in sig_handler_ignored()
58 static int sig_ignored(struct task_struct *t, int sig) in sig_ignored() argument
67 if (sigismember(&t->blocked, sig) || sigismember(&t->real_blocked, sig)) in sig_ignored()
70 handler = sig_handler(t, sig); in sig_ignored()
71 if (!sig_handler_ignored(handler, sig)) in sig_ignored()
77 return !tracehook_consider_ignored_signal(t, sig, handler); in sig_ignored()
92 ready |= signal->sig[i] &~ blocked->sig[i]; in has_pending_signals()
[all …]
Dfork.c770 struct sighand_struct *sig; in copy_sighand() local
776 sig = kmem_cache_alloc(sighand_cachep, GFP_KERNEL); in copy_sighand()
777 rcu_assign_pointer(tsk->sighand, sig); in copy_sighand()
778 if (!sig) in copy_sighand()
780 atomic_set(&sig->count, 1); in copy_sighand()
781 memcpy(sig->action, current->sighand->action, sizeof(sig->action)); in copy_sighand()
795 static void posix_cpu_timers_init_group(struct signal_struct *sig) in posix_cpu_timers_init_group() argument
798 thread_group_cputime_init(sig); in posix_cpu_timers_init_group()
801 sig->it_virt_expires = cputime_zero; in posix_cpu_timers_init_group()
802 sig->it_virt_incr = cputime_zero; in posix_cpu_timers_init_group()
[all …]
Dexit.c94 struct signal_struct *sig = tsk->signal; in __exit_signal() local
97 BUG_ON(!sig); in __exit_signal()
98 BUG_ON(!atomic_read(&sig->count)); in __exit_signal()
104 if (atomic_dec_and_test(&sig->count)) in __exit_signal()
111 if (sig->group_exit_task && atomic_read(&sig->count) == sig->notify_count) in __exit_signal()
112 wake_up_process(sig->group_exit_task); in __exit_signal()
114 if (tsk == sig->curr_target) in __exit_signal()
115 sig->curr_target = next_thread(tsk); in __exit_signal()
126 sig->utime = cputime_add(sig->utime, task_utime(tsk)); in __exit_signal()
127 sig->stime = cputime_add(sig->stime, task_stime(tsk)); in __exit_signal()
[all …]
Dposix-cpu-timers.c236 struct signal_struct *sig; in thread_group_cputime() local
246 sig = tsk->signal; in thread_group_cputime()
257 times->utime = cputime_add(times->utime, sig->utime); in thread_group_cputime()
258 times->stime = cputime_add(times->stime, sig->stime); in thread_group_cputime()
259 times->sum_exec_runtime += sig->sum_sched_runtime; in thread_group_cputime()
981 struct signal_struct *const sig = tsk->signal; in check_thread_timers() local
1030 if (sig->rlim[RLIMIT_RTTIME].rlim_cur != RLIM_INFINITY) { in check_thread_timers()
1031 unsigned long hard = sig->rlim[RLIMIT_RTTIME].rlim_max; in check_thread_timers()
1032 unsigned long *soft = &sig->rlim[RLIMIT_RTTIME].rlim_cur; in check_thread_timers()
1047 if (sig->rlim[RLIMIT_RTTIME].rlim_cur in check_thread_timers()
[all …]
Dcompat.c811 case 4: set->sig[3] = compat->sig[6] | (((long)compat->sig[7]) << 32 ); in sigset_from_compat()
812 case 3: set->sig[2] = compat->sig[4] | (((long)compat->sig[5]) << 32 ); in sigset_from_compat()
813 case 2: set->sig[1] = compat->sig[2] | (((long)compat->sig[3]) << 32 ); in sigset_from_compat()
814 case 1: set->sig[0] = compat->sig[0] | (((long)compat->sig[1]) << 32 ); in sigset_from_compat()
825 int sig; in compat_sys_rt_sigtimedwait() local
848 sig = dequeue_signal(current, &s, &info); in compat_sys_rt_sigtimedwait()
849 if (!sig) { in compat_sys_rt_sigtimedwait()
864 sig = dequeue_signal(current, &s, &info); in compat_sys_rt_sigtimedwait()
872 if (sig) { in compat_sys_rt_sigtimedwait()
873 ret = sig; in compat_sys_rt_sigtimedwait()
Daudit.h154 extern int __audit_signal_info(int sig, struct task_struct *t);
155 static inline int audit_signal_info(int sig, struct task_struct *t) in audit_signal_info() argument
159 return __audit_signal_info(sig, t); in audit_signal_info()
Dsched_stats.h360 struct signal_struct *sig; in account_group_exec_runtime() local
362 sig = tsk->signal; in account_group_exec_runtime()
365 if (unlikely(!sig)) in account_group_exec_runtime()
368 cputimer = &sig->cputimer; in account_group_exec_runtime()
Dtaskstats.c498 struct signal_struct *sig = tsk->signal; in taskstats_tgid_alloc() local
501 if (sig->stats || thread_group_empty(tsk)) in taskstats_tgid_alloc()
508 if (!sig->stats) { in taskstats_tgid_alloc()
509 sig->stats = stats; in taskstats_tgid_alloc()
517 return sig->stats; in taskstats_tgid_alloc()
Ditimer.c123 struct signal_struct *sig = in it_real_fn() local
126 kill_pid_info(SIGALRM, SEND_SIG_PRIV, sig->leader_pid); in it_real_fn()
Dnotifier.c562 struct pt_regs *regs, long err, int trap, int sig) in notify_die() argument
569 .signr = sig, in notify_die()
Dposix-timers.c874 void exit_itimers(struct signal_struct *sig) in exit_itimers() argument
878 while (!list_empty(&sig->posix_timers)) { in exit_itimers()
879 tmr = list_entry(sig->posix_timers.next, struct k_itimer, list); in exit_itimers()
Dauditsc.c2365 int __audit_signal_info(int sig, struct task_struct *t) in __audit_signal_info() argument
2373 if (sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1 || sig == SIGUSR2) { in __audit_signal_info()
/kernel/power/
Dswap.c37 char sig[10]; member
146 if (!memcmp("SWAP-SPACE",swsusp_header->sig, 10) || in mark_swapfiles()
147 !memcmp("SWAPSPACE2",swsusp_header->sig, 10)) { in mark_swapfiles()
148 memcpy(swsusp_header->orig_sig,swsusp_header->sig, 10); in mark_swapfiles()
149 memcpy(swsusp_header->sig,SWSUSP_SIG, 10); in mark_swapfiles()
604 if (!memcmp(SWSUSP_SIG, swsusp_header->sig, 10)) { in swsusp_check()
605 memcpy(swsusp_header->sig, swsusp_header->orig_sig, 10); in swsusp_check()