Executing System Calls

The entry points for the fork, vfork, and clone system calls are the sys_fork, sys_vfork, and sys_clone functions. Their definitions are architecture-dependent because the way in which parameters are passed between userspace and kernel space differs on the various architectures (see Chapter 13 for further information). The task of the above functions is to extract the information supplied by userspace from the registers of the processors and then to invoke the architecture-independent do_fork function responsible for process duplication. The prototype of the function is as follows.

Continue reading here: Kernelforkc

Was this article helpful?

0 0