kernel/arch/x86/include/asm/syscall.h
.. .. @@ -128,6 +128,11 @@ 128 128 } 129 129 } 130 130 131 +static inline unsigned long syscall_get_arg0(struct pt_regs *regs)132 +{133 + return regs->di;134 +}135 +131 136 static inline void syscall_set_arguments(struct task_struct *task, 132 137 struct pt_regs *regs, 133 138 const unsigned long *args)