Solaris mmap support
Posted: Fri Jun 29, 2007 7:10 pm
OSS for Solaris dropped mmap support more than two years ago, is there any chance of the driver being updated to work with mmap?
The old info says support was dropped because hat_getkpfnum was deprecated, and that there was then no known way to map DMA memory for the use of applications. This hasn't been the case AFAIK for around as long. devmap can be used in a variety of ways to map the memory so that applications can access it correctly regardless of 32-bit/64-bit as well.
As mmap support is important for lots of things that poke the audio device, this seems like something that should be high priority?
Now that the source is available, I'd be trying to whip up such support myself and submit a patch, but I'm not very experienced with Solaris kernel things yet, though I did do a fair bit of research on this and asked around.
Here are (hopefully) some relevant notes.
http://www.opensolaris.org/os/article/2005-03-31_inside_opensolaris__solaris_driver_programming/#dma
http://www.dbforums.com/archive/index.php/t-770875.html
http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWdev/DRIVER/p111.html
The old info says support was dropped because hat_getkpfnum was deprecated, and that there was then no known way to map DMA memory for the use of applications. This hasn't been the case AFAIK for around as long. devmap can be used in a variety of ways to map the memory so that applications can access it correctly regardless of 32-bit/64-bit as well.
As mmap support is important for lots of things that poke the audio device, this seems like something that should be high priority?
Now that the source is available, I'd be trying to whip up such support myself and submit a patch, but I'm not very experienced with Solaris kernel things yet, though I did do a fair bit of research on this and asked around.
Here are (hopefully) some relevant notes.
http://www.opensolaris.org/os/article/2005-03-31_inside_opensolaris__solaris_driver_programming/#dma
http://www.dbforums.com/archive/index.php/t-770875.html
http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWdev/DRIVER/p111.html