sys_rt_sigtimedwait(9)
π sys_rt_sigtimedwait(9) β like, the kernel API manual bestie β¨
Okay so picture this: you're in the Kernel API Manual, and today's main character is sys_rt_sigtimedwait. Buckle up π
πΈ NAME πΈ
sys_rt_sigtimedwait β ok so this one synchronously waits for queued signals that you specified in @uthese. Synchronously!! Like it's just gonna stand there and wait for them, no cap π
β¨ SYNOPSIS β¨
long sys_rt_sigtimedwait (const sigset_t __user * uthese , siginfo_t
__user * uinfo , const struct __kernel_timespec __user * uts , size_t
sigsetsize );
Literally the whole signature, character for character, because we do not mess with the source π«Ά
π ARGUMENTS π
utheseβ the queued signals you're waiting for π like, the lineup. the guest list.uinfoβ if this is non-null, the signal'ssiginfogets returned right here π so you actually find out what happened.utsβ the upper bound on how long the process can be suspended π΄ your lil time limit for the nap.sigsetsizeβ the size of thesigset_ttype π just, the size. that's it.
π¦ SEE ALSO π¦
Kernel file ./kernel/signal.c β and honestly the whole signal.c friend group came through ππ
task_set_jobctl_pending(9)task_clear_jobctl_trapping(9)task_clear_jobctl_pending(9)task_participate_group_stop(9)ptrace_trap_notify(9)force_sig_seccomp(9)do_notify_parent_cldstop(9)do_signal_stop(9)do_jobctl_trap(9)do_freezer_trap(9)signal_delivered(9)sys_restart_syscall(9)set_current_blocked(9)sys_rt_sigprocmask(9)sys_rt_sigpending(9)copy_siginfo_to_external32(9)do_sigtimedwait(9)sys_kill(9)sys_pidfd_send_signal(9)sys_tgkill(9)sys_tkill(9)sys_rt_sigqueueinfo(9)sys_sigpending(9)sys_sigprocmask(9)sys_rt_sigaction(9)sys_rt_sigsuspend(9)
ngl if you're poking at signals from inside ./kernel, this list is your group chat. read it. iykyk π
And that's the whole page, bestie β sign-off time π This one lives in ./kernel, it's dated October 2026, and the title up top is sys_rt_sigtimedwait(9) because of course it is π Slay, stay blocked-until-ready, and don't wait synchronously for anything that isn't worth it ππ¦β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms