syscall_get_arguments(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… syscall_get_arguments(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one is all about syscall_get_arguments, and it's giving β€œgrab the syscall args” energy. ✨


🌸 NAME 🌸

syscall_get_arguments β€” extract system call parameter values πŸŽ€


✨ SYNOPSIS ✨

void syscall_get_arguments (struct task_struct *task , struct pt_regs
       *regs , unsigned long *args );

🫢 ARGUMENTS 🫢

  • task β€” the task of interest, and it must be blocked. no cap 😭
  • regs β€” task_pt_regs of task. πŸ’–
  • args β€” array filled with argument values. πŸŽ€

πŸ’– DESCRIPTION πŸ’–

okay so this function fetches 6 arguments to the system call. First argument is stored in args[0], and so on β€” periodt. 🫢

🚨 valid-call vibe check: ngl, it's only valid to call this when task is stopped for tracing on entry to a system call, due to SYSCALL_WORK_SYSCALL_TRACE or SYSCALL_WORK_SYSCALL_AUDIT. Don't be messy about it. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, go peek at the kernel file ./include/asm-generic/syscall.h, plus these related icons πŸ‘‘:


signing off from ./include/asm-generic, October 2026 β€” syscall_get_arguments(9) πŸ’–βœ¨

πŸ“¦ where this page comes from