linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* CLONE_VM unsharing
@ 2011-05-11  4:48 Tharindu Rukshan Bamunuarachchi
  0 siblings, 0 replies; only message in thread
From: Tharindu Rukshan Bamunuarachchi @ 2011-05-11  4:48 UTC (permalink / raw)
  To: linux-mm

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-11  4:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11  4:48 CLONE_VM unsharing Tharindu Rukshan Bamunuarachchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox