Date: Sat, 16 Mar 1996 06:19:53 -0800 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: davidg@Root.COM Cc: David Dawes <dawes@rf900.physics.usyd.edu.au>, sos@FreeBSD.org, dyson@FreeBSD.org, current@FreeBSD.org, mmead@Glock.COM Subject: Re: Try this vm_mmap.c -- please Message-ID: <232.826985993@time.cdrom.com> In-Reply-To: Your message of "Sat, 16 Mar 1996 06:06:26 PST." <199603161406.GAA07890@Root.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
> Could be written as:
>
> /*
> * Force device mappings to be shared.
> */
> if (type == OBJT_DEVICE) {
> flags &= ~MAP_PRIVATE;
> flags |= MAP_SHARED;
> }
That works too. I wasn't sure whether or not MAP_SHARED should be
turned on unilaterally (though John correctly states that specifying
neither is an error) so I explictly confined my change to only turning
off MAP_PRIVATE (e.g. you could easily come out of that code with
neither set). I've tested this change and it works just fine. Commit
that baby! :-)
Jordan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?232.826985993>
