1DO_SIGNAL_STOP(9)                Driver Basics               DO_SIGNAL_STOP(9)
2
3
4

NAME

6       do_signal_stop - handle group stop for SIGSTOP and other stop signals
7

SYNOPSIS

9       bool do_signal_stop(int signr);
10

ARGUMENTS

12       signr
13           signr causing group stop if initiating
14

DESCRIPTION

16       If JOBCTL_STOP_PENDING is not set yet, initiate group stop with signr
17       and participate in it. If already set, participate in the existing
18       group stop. If participated in a group stop (and thus slept), true is
19       returned with siglock released.
20
21       If ptraced, this function doesn't handle stop itself. Instead,
22       JOBCTL_TRAP_STOP is scheduled and false is returned with siglock
23       untouched. The caller must ensure that INTERRUPT trap handling takes
24       places afterwards.
25

CONTEXT

27       Must be called with current->sighand->siglock held, which is released
28       on true return.
29

RETURNS

31       false if group stop is already cancelled or ptrace trap is scheduled.
32       true if participated in group stop.
33
35Kernel Hackers Manual 3.10         June 2019                 DO_SIGNAL_STOP(9)
Impressum