Arjan van de Ven wrote:
I'm a little confused about making system calls from kernel space.
... via int 0x80
that was used for creating kernel threads, by calling int 0x80 for fork/clone.
Shouldn't that be the other way around? I would think that you'd normally have a kernel function that creates threads, and the fork/clone API calls that function.
So can I use this mechanism to call any system call from kernel space? In which file is this mechanism prototyped?
-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/