syscall_set_arguments(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is syscall_set_arguments(9) from the Kernel API Manual, bestie β€” welcome to the page where we change a syscall parameter πŸ’…

syscall_set_arguments β€” change system call parameter value ✨


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • task β€” task of interest, must be in system call entry tracing πŸ‘€
  • regs β€” task_pt_regs of task
  • args β€” array of argument values to store πŸŽ€

🌸 DESCRIPTION 🌸

Okay so real talk: this changes 6 arguments to the system call. The first argument gets value args[0], and so on β€” you get the vibe ✨

⚠️ 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. That is not a suggestion, bestie β€” that's the rule πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/asm-generic/syscall.h plus the whole iconic lineup:


catch you later, bestie 🫢 β€” this page came from ./include/asm-generic, dated October 2026, and it's literally syscall_set_arguments(9) πŸ’œβœ¨

πŸ“¦ where this page comes from