LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: 0
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
 
  


Reply


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 08:26 AM
X Error with system()/fork() aaa Programming 3 08-18-2004 06:05 PM
Is it possible to use system() and get the return value from the system call newguy21 Programming 1 08-11-2004 02:37 PM
Changing Process Priority in Linux w/ System Call sptchamp Programming 2 07-21-2004 10:58 AM
Strange behaviour of fork call in Linux Uzair Programming 1 02-12-2003 02:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:49 PM.

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