* fork() vs vfork()
@ 2001-09-20 6:51 kjlin
2001-09-20 6:51 ` kjlin
2001-09-20 11:29 ` Ralf Baechle
0 siblings, 2 replies; 3+ messages in thread
From: kjlin @ 2001-09-20 6:51 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 776 bytes --]
Hi all,
How does linux-mips treat the vfork() function?
I can see the fork() implemented in syscall.c as following:
save_static_function(sys_fork);
static_unused int _sys_fork(struct pt_regs regs)
{
int res;
res = do_fork(SIGCHLD, regs.regs[29], ®s, 0);
return res;
}
But i can't see anything about vfork/sys_vfork in mips platform.
However, the vfork() was implemented as sys_vfork in other architecture.
Such as arm platform:
asmlinkage int sys_vfork(struct pt_regs *regs)
{
return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->ARM_sp, regs, 0);
}
Why not do the same "sys_vfork" in linux-mips?
Does it mean that MIPS does not support vfork() or vfork() is equal to fork() in MIPS platform?
Thanks,
KJ
[-- Attachment #2: Type: text/html, Size: 1795 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* fork() vs vfork()
2001-09-20 6:51 fork() vs vfork() kjlin
@ 2001-09-20 6:51 ` kjlin
2001-09-20 11:29 ` Ralf Baechle
1 sibling, 0 replies; 3+ messages in thread
From: kjlin @ 2001-09-20 6:51 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 776 bytes --]
Hi all,
How does linux-mips treat the vfork() function?
I can see the fork() implemented in syscall.c as following:
save_static_function(sys_fork);
static_unused int _sys_fork(struct pt_regs regs)
{
int res;
res = do_fork(SIGCHLD, regs.regs[29], ®s, 0);
return res;
}
But i can't see anything about vfork/sys_vfork in mips platform.
However, the vfork() was implemented as sys_vfork in other architecture.
Such as arm platform:
asmlinkage int sys_vfork(struct pt_regs *regs)
{
return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, regs->ARM_sp, regs, 0);
}
Why not do the same "sys_vfork" in linux-mips?
Does it mean that MIPS does not support vfork() or vfork() is equal to fork() in MIPS platform?
Thanks,
KJ
[-- Attachment #2: Type: text/html, Size: 1795 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fork() vs vfork()
2001-09-20 6:51 fork() vs vfork() kjlin
2001-09-20 6:51 ` kjlin
@ 2001-09-20 11:29 ` Ralf Baechle
1 sibling, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2001-09-20 11:29 UTC (permalink / raw)
To: kjlin; +Cc: linux-mips
On Thu, Sep 20, 2001 at 02:51:08PM +0800, kjlin wrote:
> From: "kjlin" <kj.lin@viditec-netmedia.com.tw>
> To: <linux-mips@oss.sgi.com>
> Subject: fork() vs vfork()
> Date: Thu, 20 Sep 2001 14:51:08 +0800
>
> Hi all,
>
> How does linux-mips treat the vfork() function?
> I can see the fork() implemented in syscall.c as following:
>
> save_static_function(sys_fork);
> static_unused int _sys_fork(struct pt_regs regs)
> {
> int res;
> res = do_fork(SIGCHLD, regs.regs[29], ®s, 0);
> return res;
> }
> Why not do the same "sys_vfork" in linux-mips?
> Does it mean that MIPS does not support vfork() or vfork() is equal to fork() in MIPS platform?
Hint: save_static_function is a macro.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-20 11:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-20 6:51 fork() vs vfork() kjlin
2001-09-20 6:51 ` kjlin
2001-09-20 11:29 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox