Jan Kiszka wrote:
 > May this hunk explain the behaviour?
 > http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/arch/i386/patches/adeos-ipipe-2.6.20-i386-1.7-02.patch?a=i386;v=SVN-2.3.x#7755
 > munlockall is realised via mlockall, so OR'ing here would never take
 > away any flag.

My intent was to avoid that the VM_PINNED flag be cleared by mlockall.
So, I guess the correct pattern is:

current->mm->def_flags = current->mm->def_flags & ~VM_LOCKED | def_flags;


                                            Gilles Chanteperdrix.

Xenomai-core mailing list

Reply via email to