[haiku-bugs] [Haiku] #8514: allow mmap()ing devices

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 02 May 2012 18:22:18 -0000

#8514: allow mmap()ing devices
-------------------------+------------------------------
 Reporter:  pulkomandy   |        Owner:  pulkomandy
     Type:  enhancement  |       Status:  new
 Priority:  low          |    Milestone:  Unscheduled
Component:  Drivers      |      Version:  R1/Development
 Keywords:               |   Blocked By:
 Blocking:               |  Has a Patch:  0
 Platform:  All          |
-------------------------+------------------------------
 This is a feature of Linux (and likely other POSIX OS, even if it's not
 part of POSIX itself).
 mmap()ing a disk device gets you read and write access to the sectors.
 On linux, you can also mmap() the framebuffer device to draw on the
 screen.
 There are other uses for this, likely.

 I can see that with the current device drivers, this is not possible. We
 likely need to change the device API, unless the mmap'ed area can be
 filled in with regular read and flushed with regular write calls (possibly
 with some caching).

 Thoughts ?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8514>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: