Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2012 09:00:59 +0100
From:      "Robert N. M. Watson" <robert.watson@cl.cam.ac.uk>
To:        Brooks Davis <brooks@freebsd.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 213107 for review
Message-ID:  <034862BE-2DD0-490B-9ADC-283C684B8047@cl.cam.ac.uk>
In-Reply-To: <201206190029.q5J0TY7n041524@skunkworks.freebsd.org>
References:  <201206190029.q5J0TY7n041524@skunkworks.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 19 Jun 2012, at 01:29, Brooks Davis wrote:

> Change 213107 by brooks@brooks_ecr_current on 2012/06/19 00:28:56
>=20
> 	Allow non-PAGE_SIZE sized and aligned regions as long as they =
are
> 	smaller than a page.  This allows us to provide trivial access =
to things
> 	like the buttons and switches bytes.


For the regular read(2)/write(2) interface, non-page-aligned and -sized =
regions are fine, but for mmap(2) they are problematic. Perhaps we =
should allow them only if mmap(2) access isn't requested in the =
device.hints configuration -- or at least device_printf() a warning =
about mmap(2) being disallowed?

Robert=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?034862BE-2DD0-490B-9ADC-283C684B8047>