That defines a routine to actually perform the syscall; look at
<asm/unistd.h>. It's not a declaration for...
>asmlinkage int sys_restart (struct pt_regs regs)
... this, which is the implementation of the syscall itself.
>Is it correct to assume on all architectures that one could cast the first
>arg to a syscall as a 'struct pt_regs'?
Not in general. Why do you want to do this?
p.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/