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 [thread overview]
Message-ID: <05e901c141a0$a03e6120$056aaac0@kjlin> (raw)
[-- 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 --]
WARNING: multiple messages have this Message-ID (diff)
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 [thread overview]
Message-ID: <05e901c141a0$a03e6120$056aaac0@kjlin> (raw)
Message-ID: <20010920065108.7UDBjRtZMDHzkQva_pn4o-UOafe78lgaLuxMnRd8X1c@z> (raw)
[-- 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 --]
next reply other threads:[~2001-09-20 7:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-20 6:51 kjlin [this message]
2001-09-20 6:51 ` fork() vs vfork() kjlin
2001-09-20 11:29 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='05e901c141a0$a03e6120$056aaac0@kjlin' \
--to=kj.lin@viditec-netmedia.com.tw \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox