Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 1999 09:16:24 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        matt.hamilton@acm.org
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: mmap() on raw devices
Message-ID:  <199905201516.JAA56044@panzer.plutotech.com>
In-Reply-To: <Pine.BSF.3.96.990520102940.10148C-100000@blue.bad.bris.ac.uk> from Matt Hamilton at "May 20, 1999 10:32:11 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905201516.JAA56044>