1RT_SIGQUEUEINFO(2)         Linux Programmer's Manual        RT_SIGQUEUEINFO(2)
2
3
4

NAME

6       rt_sigqueueinfo, rt_tgsigqueueinfo - queue a signal and data
7

SYNOPSIS

9       #include <linux/signal.h>     /* Definition of SI_* constants */
10       #include <sys/syscall.h>      /* Definition of SYS_* constants */
11       #include <unistd.h>
12
13       int syscall(SYS_rt_sigqueueinfo, pid_t tgid,
14                   int sig, siginfo_t *info);
15       int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid,
16                   int sig, siginfo_t *info);
17
18       Note: There are no glibc wrappers for these system calls; see NOTES.
19

DESCRIPTION

21       The rt_sigqueueinfo() and rt_tgsigqueueinfo() system calls are the low-
22       level interfaces used to send a  signal  plus  data  to  a  process  or
23       thread.  The receiver of the signal can obtain the accompanying data by
24       establishing a signal handler with the sigaction(2) SA_SIGINFO flag.
25
26       These system calls are not intended for direct  application  use;  they
27       are   provided   to   allow   the  implementation  of  sigqueue(3)  and
28       pthread_sigqueue(3).
29
30       The rt_sigqueueinfo() system call sends the signal sig  to  the  thread
31       group  with  the  ID tgid.  (The term "thread group" is synonymous with
32       "process", and tid corresponds to the  traditional  UNIX  process  ID.)
33       The signal will be delivered to an arbitrary member of the thread group
34       (i.e., one of the threads that is not currently blocking the signal).
35
36       The info argument specifies the data to accompany the signal.  This ar‐
37       gument  is  a  pointer  to  a structure of type siginfo_t, described in
38       sigaction(2) (and defined  by  including  <sigaction.h>).   The  caller
39       should set the following fields in this structure:
40
41       si_code
42              This  should be one of the SI_* codes in the Linux kernel source
43              file include/asm-generic/siginfo.h.  If the signal is being sent
44              to  any  process other than the caller itself, the following re‐
45              strictions apply:
46
47              *  The code can't be a value greater than or equal to zero.   In
48                 particular,  it can't be SI_USER, which is used by the kernel
49                 to indicate a signal sent by  kill(2),  and  nor  can  it  be
50                 SI_KERNEL,  which  is  used to indicate a signal generated by
51                 the kernel.
52
53              *  The code can't (since Linux 2.6.39)  be  SI_TKILL,  which  is
54                 used by the kernel to indicate a signal sent using tgkill(2).
55
56       si_pid This  should be set to a process ID, typically the process ID of
57              the sender.
58
59       si_uid This should be set to a user ID, typically the real user  ID  of
60              the sender.
61
62       si_value
63              This  field contains the user data to accompany the signal.  For
64              more information, see the description of the last (union sigval)
65              argument of sigqueue(3).
66
67       Internally,  the  kernel sets the si_signo field to the value specified
68       in sig, so that the receiver of the signal can also obtain  the  signal
69       number via that field.