Joerg Schilling wrote:
"Garrett D'Amore" <garr...@damore.org> wrote:

I've been thinking about a problem I've had that keeps recurring, and I'd like to present the following proposal to PSARC. However,before I do, I'd like to hear thoughts from other folks who might have thoughts on the matter.

Stream and Character Dual Personality Device Support
----------------------------------------------------

Background:
-----------

There are two different frameworks for device drivers in Solaris -- one that
implies a device is a typical character/block device (and hence supports the
typical read(2), write(2), etc. entry points), and another that assumes that
devices are STREAMs devices and export their entry points via cb_ops.

I remember the problem that I had to solve around 1995 because I wanted to have mmap() in a DLPI driver (An ATM NIC driver) in order to download the firmware. I was forced to cheat somewhere in the initialization phase for mmap() ad the kernel code did like to get some information I could not have at that time.
So I returned a dummy PTE and later corrected this.

Do you plan to fix this problem too?

I'm not sure that problem still exists. My read is that it is possible even today for a DLPI driver to support mmap.

   - Garrett
Jörg


_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to