[openib-general] Re: [PATCH] fork support

Roland Dreier rolandd at cisco.com
Tue Jul 19 06:53:33 PDT 2005


    Michael> So, instead of the patch as I posted it, we want new
    Michael> flags to mprotect that will let it touch only one flag at
    Michael> a time, leaving all the rest alone?  Something along the
    Michael> lines of:

    Michael> #define PROT_SET 0x80000000 #define PROT_CLR 0x40000000

    Michael> And now: mprotect(..., PROT_SET | PROT_DONTCOPY) to set
    Michael> mprotect(..., PROT_CLR | PROT_DONTCOPY) to clear
    Michael> And PROT_DONTCOPY will be editable only when PROT_SET or
    Michael> PROT_CLR is set?

Actually I thought about this some more.  I think the current
interface is fine (and probably specified by SUS or something like
that).  If someone is doing multiple mprotects, they should know
what's there.

 - R.



More information about the general mailing list