In message <[EMAIL PROTECTED]>, David Rufino writes:
>Hi,
>
>I'm writing a character device driver in which each minor device can be
>opened more than once.  When a device is opened is there a way to associate
>some private data for each opened instance ? Thanks.

It is not possible to do this.  There is no reliable way to associate
a call into the device driver with a particular file descriptor, and
in particular the driver cannot find out what happens in if dup(2)
is used.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to