1SYSCALL_GET_ERROR(9)             Machine State            SYSCALL_GET_ERROR(9)
2
3
4

NAME

6       syscall_get_error - check result of traced system call
7

SYNOPSIS

9       long syscall_get_error(struct task_struct * task,
10                              struct pt_regs * regs);
11

ARGUMENTS

13       task
14           task of interest, must be blocked
15
16       regs
17
18           task_pt_regs of task
19

DESCRIPTION

21       Returns 0 if the system call succeeded, or -ERRORCODE if it failed.
22
23       It's only valid to call this when task is stopped for tracing on exit
24       from a system call, due to TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT.
25
26
27
28Kernel Hackers Manual 2.6.       November 2011            SYSCALL_GET_ERROR(9)
Impressum