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).
Which library function
passes “struct pt_regs” parameter to “sys_fork” after
the fork() sytem call is invoked in the user process.
Is there any other way
I can implement a new system call which behaves as the fork() system call, but can
take arguments.
It’s very urgent
for me. Pls help me out regarding this.
Seshu.