Re: Reg:flow of system call in linux

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 12 Aug 2001 15:10:38 +0100 (BST)


> Can someone tell me about the flow of system call for eg. from open
> wrapper routine to sys_open() function or atleast please suggest me a
> book/website
> where I can get this info.

Userspace open() calls into glibc code
glibc does architecture dependant magic to make a syscall
The kernel syscall code does architecture dependant magic
The kernel calls sys_open

In the x86 case the magic is basically

Load arguments into the right registers
int 0x80

then the kernel code in arch/i386/kernel/entry.S

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/