1SYSCALL_SET_ARGUMENT(9) Machine State SYSCALL_SET_ARGUMENT(9)
2
3
4
6 syscall_set_arguments - change system call parameter value
7
9 void syscall_set_arguments(struct task_struct * task,
10 struct pt_regs * regs, unsigned int i,
11 unsigned int n, const unsigned long * args);
12
14 task
15 task of interest, must be in system call entry tracing
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 of argument values to store
29
31 Changes n arguments to the system call starting with the i'th argument.
32 Argument i gets value args[0], and so on. An arch inline version is
33 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. November 2011 SYSCALL_SET_ARGUMENT(9)