In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes:
>Hi folks,
>
>I have a char driver that must be opened by more than one process. The minor
>index is not sufficient for this. Is there any process private data (void *)
>in the devfs structure (or the opposite) I could point to with the minor index
>of my device?
No.
You want to split your minor number into separate unit and instance parts,
and allow each instance to be only opened once (return EBUSY). A quick fix
is to continue selecting the softc structure exclusively based on unit
number and to hang the necessary per instance data off that.
--
<a href="http://www.poohsticks.org/drew/">Home Page</a>
For those who do, no explanation is necessary.
For those who don't, no explanation is possible.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message