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

NAME

6       syscall_get_arguments - extract system call parameter values
7

SYNOPSIS

9       void syscall_get_arguments(struct task_struct * task,
10                                  struct pt_regs * regs, unsigned int i,
11                                  unsigned int n, unsigned long * args);
12

ARGUMENTS

14       task
15           task of interest, must be blocked
16
17       regs
18
19           task_pt_regs of task
20
21       i
22           argument index [0,5]
23
24       n
25           number of arguments; n+i must be [1,6].
26
27       args
28           array filled with argument values
29

DESCRIPTION

31       Fetches n arguments to the system call starting with the i´th argument
32       (from 0 through 5). Argument i is stored in args[0], and so on. An arch
33       inline version is probably optimal when i and n are constants.
34
35       It´s only valid to call this when task is stopped for tracing on entry
36       to a system call, due to TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT. It´s
37       invalid to call this with i + n > 6; we only support system calls
38       taking up to 6 arguments.
39
40
41
42Kernel Hackers Manual 2.6.         June 2019           SYSCALL_GET_ARGUMENT(9)
Impressum