syscall_get_arguments(9)
π
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_regsoftask. π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 whentaskis stopped for tracing on entry to a system call, due toSYSCALL_WORK_SYSCALL_TRACEorSYSCALL_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 π:
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_set_arguments(9)syscall_get_arch(9)
signing off from ./include/asm-generic, October 2026 β syscall_get_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