User: Password:
Subscribe / Log in / New account

add rt_tgsigqueueinfo syscall -V2

From:  Thomas Gleixner <>
To:  LKML <>
Subject:  [patch 0/3] add rt_tgsigqueueinfo syscall -V2
Date:  Tue, 24 Mar 2009 10:35:04 -0000
Message-ID:  <>
Cc:  Roland McGrath <>, Oleg Nesterov <>, Michael Kerrisk <>, Ulrich Drepper <>, Andrew Morton <>, Ingo Molnar <>
Archive-link:  Article

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 

Find below the raw documentation.



       rt_tgsigqueueinfo - Send signal information to a signal to a thread

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


       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


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

              An invalid value for uinfo was specified.

              An invalid TID, TGID or signal was specified.

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

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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds