syscall_set_arguments(9)
π 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_regsof taskargsβ 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 whentaskis stopped for tracing on entry to a system call, due toSYSCALL_WORK_SYSCALL_TRACEorSYSCALL_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:
syscall_get_nr(9)syscall_set_nr(9)syscall_rollback(9)syscall_get_error(9)syscall_get_return_value(9)syscall_set_return_value(9)syscall_get_arguments(9)syscall_get_arch(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms