Skip to content

add rt_tgsigqueueinfo syscall -V2

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Changes since V1 from the cover letter

- match rt_siqqueueinfo and rt_tgsigqueueinfo handling of info.si_pid/si_uid

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3signals: split do_tkillkernel/signal.c+18 -120 replies
2/3signals: implement sys_rt_tgsigqueueinfoinclude/linux/compat.h include/linux/signal.h kernel/compat.c +1 more+41 -00 replies
3/3x86: hookup sys_rt_tgsigqueueinfoarch/x86/ia32/ia32entry.S arch/x86/include/asm/unistd_32.h arch/x86/include/asm/unistd_64.h +1 more+5 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchOleg NesterovMichael Kerrisk
SeriesR-b A-b T-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/3] add rt_tgsigqueueinfo syscall -V2

sys_kill has a counterpart sys_tgkill which allows to send signals to a particular thread. sys_rt_sigqueueinfo is lacking such a counterpart.

Aside of the asymetry it is a show stopper for migrating applications from other unix-alike RTOSes.

The following patch series implements rt_tgsigqueueinfo and hooks it up for x86.

Changes since V1:
- match rt_siqqueueinfo and rt_tgsigqueueinfo handling of info.si_pid/si_uid

Find below the raw documentation.

Thanks,

tglx
----

NAME
rt_tgsigqueueinfo - Send signal information to a signal to a thread

SYNOPSIS

       long sys_rt_tgsigqueueinfo (int tgid, int tid, int sig, siginfo_t *uinfo);

DESCRIPTION

rt_tgsigqueueinfo sends signal sig information uinfo to the thread with the thread ID tid in the thread group tgid. (By contrast, rt_sigqueueinfo(2) can only be used to send a signal info to a process (i.e., thread group) as a whole, and the signal will be delivered to an arbitrary thread within that process.)

RETURN VALUE

rt_tgsigqueueinfo returns 0 on success; otherwise, rt_sigqueueinfo returns one of the errors listed in the "Errors" section.

ERRORS
-EFAULT
An invalid value for uinfo was specified.

-EINVAL
An invalid TID, TGID or signal was specified.

-EPERM
Permission denied. For the required permissions, see rt_sigqueueinfo(2).

-ESRCH
No process with the specified thread ID and thread group ID exists.