set_restore_sigmask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ set_restore_sigmask(9) β€” Kernel API Manual ✨

🌸 NAME 🌸

set_restore_sigmask β€” make sure saved_sigmask processing gets done ✨


✨ SYNOPSIS ✨

void set_restore_sigmask (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, like literally none, bestie πŸ™ˆ

πŸ’… DESCRIPTION πŸ’…

This one is giving main character energy for signal masks ✨. It sets TIF_RESTORE_SIGMASK and ensures that the arch signal code will run before returning to user mode, to process the flag. No cap.

Here’s the tea for all callers β˜•: TIF_SIGPENDING is already set, or it’s no harm to set it. The way that works out is very chill.

Also important: TIF_RESTORE_SIGMASK need not be in the set of bits that the arch code will notice on return to user mode, in case those bits are scarce πŸ‘€. So yeah, it doesn’t have to be noticed there.

We set TIF_SIGPENDING here to ensure that the arch signal code always gets run when TIF_RESTORE_SIGMASK is set. periodt πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/sched/signal.h struct thread_group_cputimer(9) 🫢

mwah πŸ’‹ cute sign-off time: source/version ./include/linux/sched, date October 2026, page set_restore_sigmask(9). bye bestie, slay your signals 🌈✨

πŸ“¦ where this page comes from