syscall_get_error(9)
π¦ NAME π¦
okay so this is the syscall_get_error(9) page, part of the Kernel API Manual, and it's literally here to check the result of a traced system call. main character energy for syscall tracing β¨
β¨ SYNOPSIS β¨
long syscall_get_error (struct task_struct *task , struct pt_regs *regs
);
π ARGUMENTS π
taskβ the task of interest, and bestie it must be blocked. no exceptions πregsβ thetask_pt_regsoftask. literally that π«Ά
π DESCRIPTION π
So it returns 0 if the system call succeeded, or -ERRORCODE if it failed. that's the whole vibe check, fr fr π
β οΈ It's only valid to call this whentaskis stopped for tracing on exit from a system call, due toSYSCALL_WORK_SYSCALL_TRACEorSYSCALL_WORK_SYSCALL_AUDIT. like, do not freelance this check at other times, bestie β it's giving strict rules only π₯
π SEE ALSO π
Kernel file ./include/asm-generic/syscall.h β go read the source, iykyk. also these iconic siblings:
syscall_get_nr(9)syscall_set_nr(9)syscall_rollback(9)syscall_get_return_value(9)syscall_set_return_value(9)syscall_get_arguments(9)syscall_set_arguments(9)syscall_get_arch(9)
this page's source/home is ./include/asm-generic, and the version/date is October 2026. mwah, mwah ππ
π¦ 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