STRUCT USER_REGS_STRUCT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct user_regs_struct β€” aka struct user_regs_struct(9) β€” and it's giving user general purpose registers. that's the whole vibe. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct user_regs_struct {
           unsigned long gr[32];
           unsigned long sr[8];
           unsigned long iaoq[2];
           unsigned long iasq[2];
           unsigned long sar;
           unsigned long iir;
           unsigned long isr;
           unsigned long ior;
           unsigned long ipsw;
           unsigned long cr0;
           unsigned long cr24, cr25, cr26, cr27, cr28, cr29, cr30, cr31;
           unsigned long cr8, cr9, cr12, cr13, cr10, cr15;
           unsigned long _pad[80-64];
        };

πŸŽ€ Members πŸŽ€

πŸ’¬ Description πŸ’¬

This is the user-visible general purpose register state structure which is used to define the elf_gregset_t. like, that's literally its whole job. πŸ’…

It can be accessed through PTRACE_GETREGSET with NT_PRSTATUS and through PTRACE_GETREGS. iykyk. ✨

🌈 SEE ALSO 🌈

  • Kernel file ./arch/parisc/include/uapi/asm/ptrace.h struct user_fp_struct(9) β€” bestie, go peek at the source. 🫢

mwah πŸ’‹ β€” source/version: ./arch/parisc/include/uapi/asm, date: October 2026. that's the footer tea, bestie. πŸŽ€

πŸ“¦ where this page comes from