CLONE_VM unsharing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx  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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]