Home
last modified time | relevance | path

Searched refs:sighand (Results 1 – 25 of 28) sorted by relevance

12

/linux/fs/
H A Dsignalfd.c36 void signalfd_cleanup(struct sighand_struct *sighand) in signalfd_cleanup() argument
38 wake_up_pollfree(&sighand->signalfd_wqh); in signalfd_cleanup()
56 poll_wait(file, &current->sighand->signalfd_wqh, wait); in signalfd_poll()
58 spin_lock_irq(&current->sighand->siglock); in signalfd_poll()
63 spin_unlock_irq(&current->sighand->siglock); in signalfd_poll()
161 spin_lock_irq(&current->sighand->siglock); in signalfd_dequeue()
170 spin_unlock_irq(&current->sighand->siglock); in signalfd_dequeue()
174 add_wait_queue(&current->sighand->signalfd_wqh, &wait); in signalfd_dequeue()
184 spin_unlock_irq(&current->sighand->siglock); in signalfd_dequeue()
186 spin_lock_irq(&current->sighand->siglock); in signalfd_dequeue()
[all …]
H A Dexec.c926 struct sighand_struct *oldsighand = tsk->sighand; in de_thread()
1067 struct sighand_struct *oldsighand = me->sighand; in unshare_sighand()
1072 * This ->sighand is shared with the CLONE_SIGHAND in unshare_sighand()
1085 rcu_assign_pointer(me->sighand, newsighand); in unshare_sighand()
H A Dcoredump.c516 spin_lock_irq(&tsk->sighand->siglock); in zap_threads()
527 spin_unlock_irq(&tsk->sighand->siglock); in zap_threads()
566 spin_lock_irq(&current->sighand->siglock); in coredump_finish()
571 spin_unlock_irq(&current->sighand->siglock); in coredump_finish()
/linux/include/linux/
H A Dsignalfd.h21 if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh))) in signalfd_notify()
22 wake_up(&tsk->sighand->signalfd_wqh); in signalfd_notify()
25 extern void signalfd_cleanup(struct sighand_struct *sighand);
31 static inline void signalfd_cleanup(struct sighand_struct *sighand) { } in signalfd_cleanup() argument
H A Dsignal.h453 (t)->sighand->action[(signr)-1].sa.sa_handler == SIG_DFL)
/linux/kernel/
H A Dsignal.c74 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
173 spin_lock_irq(&current->sighand->siglock); in calculate_sigpending()
176 spin_unlock_irq(&current->sighand->siglock); in calculate_sigpending()
257 * Must be called with @task->sighand->siglock held.
288 * Must be called with @task->sighand->siglock held.
312 * Must be called with @task->sighand->siglock held.
337 * Must be called with @task->sighand->siglock held.
461 * flush_sigqueue_list() can only be invoked without holding sighand::siglock in
470 * thread group was unhashed and task::sighand is NULL.
472 * Nothing can queue a signal anymore because sighand i
1396 struct sighand_struct *sighand; lock_task_sighand() local
1436 struct sighand_struct *sighand; lockdep_assert_task_sighand_held() local
2362 struct sighand_struct *sighand; do_notify_parent_cldstop() local
2878 struct sighand_struct *sighand = current->sighand; get_signal() local
[all...]
H A Dexit.c163 struct sighand_struct *sighand; in __exit_signal() local
167 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
169 spin_lock(&sighand->siglock); in __exit_signal()
211 * the smp_acquire__after_ctrl_dep() in the sighand == NULL in __exit_signal()
214 smp_store_release(&tsk->sighand, NULL); in __exit_signal()
215 spin_unlock(&sighand->siglock); in __exit_signal()
217 __cleanup_sighand(sighand); in __exit_signal()
873 struct sighand_struct *sighand = tsk->sighand;
879 struct sighand_struct *sighand = tsk->sighand; synchronize_group_exit() local
1114 struct sighand_struct *const sighand = current->sighand; do_group_exit() local
[all...]
H A Dptrace.c151 spin_lock(&child->sighand->siglock); in __ptrace_unlink()
178 spin_unlock(&child->sighand->siglock); in __ptrace_unlink()
210 spin_lock_irq(&task->sighand->siglock); in ptrace_freeze_traced()
216 spin_unlock_irq(&task->sighand->siglock); in ptrace_freeze_traced()
252 * Grabs and releases tasklist_lock and @child->sighand->siglock.
271 * child->sighand can't be NULL, release_task() in ptrace_check_attach()
405 guard(spinlock)(&task->sighand->siglock); in ptrace_set_stopped()
577 else if (ignoring_children(tracer->sighand) || in __ptrace_detach()
769 spin_lock_irq(&child->sighand->siglock); in ptrace_peek_siginfo()
777 spin_unlock_irq(&child->sighand in ptrace_peek_siginfo()
[all...]
H A Dfork.c1705 refcount_inc(&current->sighand->count); in copy_sighand()
1709 RCU_INIT_POINTER(tsk->sighand, sig); in copy_sighand()
1714 spin_lock_irq(&current->sighand->siglock); in copy_sighand()
1715 memcpy(sig->action, current->sighand->action, sizeof(sig->action)); in copy_sighand()
1716 spin_unlock_irq(&current->sighand->siglock); in copy_sighand()
1725 void __cleanup_sighand(struct sighand_struct *sighand) in __cleanup_sighand() argument
1727 if (refcount_dec_and_test(&sighand->count)) { in __cleanup_sighand()
1728 signalfd_cleanup(sighand); in __cleanup_sighand()
1733 kmem_cache_free(sighand_cachep, sighand); in __cleanup_sighand()
1814 assert_spin_locked(&current->sighand->siglock); in copy_seccomp()
[all …]
H A Dpid_namespace.c208 spin_lock_irq(&me->sighand->siglock); in zap_pid_ns_processes()
209 me->sighand->action[SIGCHLD - 1].sa.sa_handler = SIG_IGN; in zap_pid_ns_processes()
210 spin_unlock_irq(&me->sighand->siglock); in zap_pid_ns_processes()
H A Daudit.c2444 spin_lock_irqsave(&current->sighand->siglock, flags); in audit_get_tty()
2447 spin_unlock_irqrestore(&current->sighand->siglock, flags); in audit_get_tty()
/linux/include/linux/sched/
H A Dsignal.h296 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
298 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
305 spin_lock_irq(&current->sighand->siglock); in kernel_signal_stop()
310 spin_unlock_irq(&current->sighand->siglock); in kernel_signal_stop()
781 __cond_acquires(nonnull, &task->sighand->siglock);
785 __releases(&task->sighand->siglock) in unlock_task_sighand()
787 spin_unlock_irqrestore(&task->sighand->siglock, *flags); in unlock_task_sighand()
H A Dcputime.h97 if (unlikely(!tsk->sighand)) in get_running_cputimer()
/linux/fs/proc/
H A Dtask_nommu.c65 if (current->sighand && refcount_read(&current->sighand->count) > 1) in task_mem()
66 sbytes += kobjsize(current->sighand); in task_mem()
68 bytes += kobjsize(current->sighand); in task_mem()
/linux/arch/x86/kernel/fpu/
H A Dcore.c245 spin_lock_irq(&current->sighand->siglock); in fpu_lock_guest_permissions()
252 spin_unlock_irq(&current->sighand->siglock); in fpu_lock_guest_permissions()
641 spin_lock_irq(&current->sighand->siglock); in fpu_inherit_perms()
645 spin_unlock_irq(&current->sighand->siglock); in fpu_inherit_perms()
H A Dxstate.c1695 lockdep_assert_held(&current->sighand->siglock); in validate_sigaltstack()
1789 spin_lock_irq(&current->sighand->siglock); in xstate_request_perm()
1797 spin_unlock_irq(&current->sighand->siglock); in xstate_request_perm()
1815 spin_lock_irq(&current->sighand->siglock); in __xfd_enable_feature()
1819 spin_unlock_irq(&current->sighand->siglock); in __xfd_enable_feature()
1834 spin_unlock_irq(&current->sighand->siglock); in __xfd_enable_feature()
/linux/kernel/cgroup/
H A Dfreezer.c140 spin_lock(&current->sighand->siglock); in cgroup_leave_frozen()
143 spin_unlock(&current->sighand->siglock); in cgroup_leave_frozen()
/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c396 struct sighand_struct *sighand; in check_lock_type()
418 sighand = curr->sighand; in do_lock_delay()
420 if (sighand && &sighand->siglock == (void *)lock)
368 struct sighand_struct *sighand; check_lock_type() local
/linux/fs/coda/
H A Dupcall.c618 spin_lock_irq(&current->sighand->siglock); in coda_block_signals()
627 spin_unlock_irq(&current->sighand->siglock); in coda_block_signals()
632 spin_lock_irq(&current->sighand->siglock); in coda_unblock_signals()
635 spin_unlock_irq(&current->sighand->siglock); in coda_unblock_signals()
/linux/tools/perf/util/bpf_skel/vmlinux/
H A Dvmlinux.h106 struct sighand_struct *sighand; member
/linux/net/sunrpc/
H A Dsvc.c1260 struct sighand_struct *sighand; in svc_unregister() local
1279 sighand = rcu_dereference(current->sighand); in svc_unregister()
1280 spin_lock_irqsave(&sighand->siglock, flags); in svc_unregister()
1282 spin_unlock_irqrestore(&sighand->siglock, flags); in svc_unregister()
/linux/fs/autofs/
H A Dwaitq.c82 spin_lock_irqsave(&current->sighand->siglock, flags); in autofs_write()
85 spin_unlock_irqrestore(&current->sighand->siglock, flags); in autofs_write()
/linux/init/
H A Dinit_task.c173 .sighand = &init_sighand,
/linux/kernel/time/
H A Dposix-cpu-timers.c269 * with task sighand lock held.
498 * Lookup the task via timer->it.cpu.pid and attempt to lock the task's sighand.
506 * lock(p, sighand);
508 * sighand = lock_task_sighand(p); unhash_task(p);
509 * p->sighand = NULL;
510 * unlock(sighand);
512 * In this case sighand is NULL, which means the task and the associated timer
536 * old_leader->sighand = NULL; in timer_lock_sighand()
538 * sighand = lock_task_sighand(p) in timer_lock_sighand()
570 /* Try to lock the task's sighand */
[all...]
H A Dtick-sched.c590 lockdep_assert_held(&tsk->sighand->siglock); in tick_nohz_dep_set_signal()

12