From: Tharindu Rukshan Bamunuarachchi <btharindu@gmail.com>
To: linux-mm@kvack.org
Subject: CLONE_VM unsharing
Date: Wed, 11 May 2011 10:18:53 +0530 [thread overview]
Message-ID: <BANLkTi=F2RrzBHDUrRpPvzYyT2Q7FDPWug@mail.gmail.com> (raw)
Hello,
According to ushare_vm function, unsharing mm_struct has not been
implemented yet. Am I mistaken ?
static int unshare_vm(unsigned long unshare_flags, struct mm_struct **new_mmp)
{
struct mm_struct *mm = current->mm;
if ((unshare_flags & CLONE_VM) &&
(mm && atomic_read(&mm->mm_users) > 1)) {
return -EINVAL;
}
return 0;
}
Would it be enough to duplicate mm_struct here if i need usharing of VM ?
__
Tharindu "R" Bamunuarachchi.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2011-05-11 4:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='BANLkTi=F2RrzBHDUrRpPvzYyT2Q7FDPWug@mail.gmail.com' \
--to=btharindu@gmail.com \
--cc=linux-mm@kvack.org \
/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