Garrett D'Amore wrote:
Edward Pilatowicz wrote:
so while i don't see the minor number management interfaces as usefull,
i do see the state handle as potentially usefull. i actually created
such a handle in an old prototype i did for stacked drivers many years
ago. in that case, use of the handle was controlled by a cb_ops device
flag. there was a one-to-one mapping between the handle and a given
minor node, and every driver in the stack had it's own handle. the data
handles were stored in the common snode, and as long as all data access
was done via the filesystem or the ldi (and not directly via driver.c
interfaces), we would have access to the common snode to easily get the
handles. this would save the driver from having to do any kind of
lookups internally.
I'm coming around to the idea of the state handle ...
What do you see as being a hurdle to the idea of a state handle?
Darren
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code