xxchpoll() interface
Hello
I have a non-STREAMs based character device driver. I want to implement my own xxchpoll() routine.
As per the man page of chpoll(9E), if anyyet is not set, the driver must return an instance of the local pollhead structure.... In which routine (xxattach, xxopen etc) do I store this local pollhead structure and how do I initialize it ?
Also, in linux, we have spin_lock() and spin_lock_bh(). the difference being that the latter function also disables bottom half execution ( and should be used with locks accessed both from bottom half/tasklet contexts)..
Is there an equivalent set of Solaris functions that do this ? As far as I know, the mutex_enter() function is used to lock both Adaptive locks as well as spinlocks (correct me if I am wrong)
Awaiting replies..
-Kaushik

