From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 22:20:28 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA4316A494 for ; Sat, 24 Jun 2006 22:20:28 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail25.syd.optusnet.com.au (mail25.syd.optusnet.com.au [211.29.133.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C435A43D4C for ; Sat, 24 Jun 2006 22:20:27 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail25.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k5OMKAPS010942 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 25 Jun 2006 08:20:11 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k5OMK9RS007271; Sun, 25 Jun 2006 08:20:09 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k5OMK9cP007270; Sun, 25 Jun 2006 08:20:09 +1000 (EST) (envelope-from peter) Date: Sun, 25 Jun 2006 08:20:08 +1000 From: Peter Jeremy To: Dmitry Pryanishnikov Message-ID: <20060624222008.GD747@turion.vk2pj.dyndns.org> References: <20060624010644.Y82000@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X" Content-Disposition: inline In-Reply-To: <20060624010644.Y82000@atlantis.atlantis.dp.ua> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: mmap() vs. character special file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 22:20:28 -0000 --UFHRwCdBEJvubb2X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, 2006-Jun-24 01:27:05 +0300, Dmitry Pryanishnikov wrote: >So it looks like one should be able to mmap() a character special file (w/= o=20 >MAP_ANON, of course). However, if I try to issue: If you have the kernel source handy, you can check which devices support mmap() by looking for a 'd_mmap' entry in their struct cdevsw. --=20 Peter Jeremy --UFHRwCdBEJvubb2X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEnbqX/opHv/APuIcRAjR6AKC12cNcPDKpzNMZwVFvWyEEgznpNwCgt6hv 11oibmpj9X9vGGkx+7/klXY= =h3O9 -----END PGP SIGNATURE----- --UFHRwCdBEJvubb2X--