STRUCT UCONTEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is struct ucontext β€” the user context structure β€” and we're reading the struct ucontext(9) page from the Kernel API Manual. she's giving β€œI hold a whole user context” energy, periodt. πŸ’…

✨ SYNOPSIS ✨

here's the struct exactly as printed, no cap, no edits:

struct ucontext {
    unsigned long           uc_flags;
    struct ucontext         *uc_link;
    stack_t uc_stack;
    struct sigcontext       uc_mcontext;
    sigset_t uc_sigmask;
    unsigned long long      uc_extcontext[];
 };

🫢 Members 🫢

vibe check on the members, in the same order the page gives them:

  • uc_flags β€” the flags member. the page lists it with no extra description, so that's the whole tea. 🍡
  • uc_link β€” the link member, listed with no extra description either. 🫢
  • uc_stack β€” the stack member, named and not elaborated on. 🌸
  • uc_mcontext β€” holds basic processor state ✨ (that's the actual note, bestie).
  • uc_sigmask β€” the signal mask member, listed with no extra description. πŸ’œ
  • uc_extcontext β€” holds extended processor state πŸ”₯ (again, that's the note).

🌈 SEE ALSO 🌈

  • Kernel file ./arch/mips/include/uapi/asm/ucontext.h struct extcontext(9), struct msa_extcontext(9) β€” go look, iykyk πŸ‘€

xoxo, your kernel bestie πŸ’– β€” source/version: ./arch/mips/include/uapi/asm; date: October 2026; page: struct ucontext(9). byeee πŸ‘‘

πŸ“¦ where this page comes from