Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-02-2004, 05:18 AM   #1
LQ Newbie
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Changing the fork system call

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming: fork, exec and system memory atienza Programming 2 08-24-2005 07:26 AM
X Error with system()/fork() aaa Programming 3 08-18-2004 05:05 PM
Is it possible to use system() and get the return value from the system call newguy21 Programming 1 08-11-2004 01:37 PM
Changing Process Priority in Linux w/ System Call sptchamp Programming 2 07-21-2004 09:58 AM
Strange behaviour of fork call in Linux Uzair Programming 1 02-12-2003 01:37 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration