Re: syscall semantics question

Philip Blundell (pb@nexus.co.uk)
Thu, 30 Sep 1999 09:59:37 +0100


>A system call is defined as:
>
>static inline _syscall1 (int, restart, char*, filename);

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/