From owner-freebsd-current Thu May 20 8:16:30 1999 Delivered-To: freebsd-current@freebsd.org Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (Postfix) with ESMTP id F268E152A2 for ; Thu, 20 May 1999 08:16:28 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.3/8.8.5) id JAA56044; Thu, 20 May 1999 09:16:24 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199905201516.JAA56044@panzer.plutotech.com> Subject: Re: mmap() on raw devices In-Reply-To: from Matt Hamilton at "May 20, 1999 10:32:11 am" To: matt.hamilton@acm.org Date: Thu, 20 May 1999 09:16:24 -0600 (MDT) Cc: freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matt Hamilton wrote... > Dear All, > > I am trying to mmap a raw device (/dev/rda0) yet mmap() keeps returning > EINVAL. From what I have read on the list archives, mmap() should be able > to map a character device (just not a block device), am I missing > something here? > > I have tried this on 3.1-STABLE and 4.0-CURRENT, but no luck. You'll only be able to mmap a device node if it supports mmaping. The da(4) driver, like the sd(4) driver before it, doesn't support mmapping. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message