LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Changing the fork system call (https://www.linuxquestions.org/questions/programming-9/changing-the-fork-system-call-237829/)

seshuch 10-02-2004 05:18 AM

Changing the fork system call
 
Hi,
I'm implementing a new real time scheduling algorithm in the linux kernel. For that I need to change the default fork() sytem call, so that the new system call takes extra arguments like deadline and execution time while creating the process.
In the context of the user process fork() doesn't take any parameters. But in /usr/src/linux-2.4/arch/i386/kernel/process.c , the declaration for the fork() sytem call is like this
asmlinkage int sys_fork(struct pt_regs regs).
After the system call is encountered in the user process, some c library routine is invoked which stores the system call number and arguments in registers and it finally calls above declaration.
Can anybody help me out which c library routine is invoked who passes "struct pt_regs" argument to sys_fork.

seshu:Pengy:


All times are GMT -5. The time now is 02:10 AM.