From owner-p4-projects@FreeBSD.ORG Tue Jun 19 08:01:04 2012 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4869D1065672; Tue, 19 Jun 2012 08:01:03 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5CA5106564A; Tue, 19 Jun 2012 08:01:02 +0000 (UTC) (envelope-from robert.watson@cl.cam.ac.uk) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7EA368FC08; Tue, 19 Jun 2012 08:01:02 +0000 (UTC) Received: from [192.168.2.111] (host86-182-204-28.range86-182.btcentralplus.com [86.182.204.28]) by cyrus.watson.org (Postfix) with ESMTPSA id 742DE46B88; Tue, 19 Jun 2012 04:01:01 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: "Robert N. M. Watson" In-Reply-To: <201206190029.q5J0TY7n041524@skunkworks.freebsd.org> Date: Tue, 19 Jun 2012 09:00:59 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <034862BE-2DD0-490B-9ADC-283C684B8047@cl.cam.ac.uk> References: <201206190029.q5J0TY7n041524@skunkworks.freebsd.org> To: Brooks Davis X-Mailer: Apple Mail (2.1257) Cc: Perforce Change Reviews Subject: Re: PERFORCE change 213107 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 08:01:04 -0000 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=