Hello everybody,

I am writing a pseudo-device driver (as a kernel module) that needs to
be opened in write mode by several processes. The problem I am having is
that I do get all the "open" calls when a process opens the device, and
I am able to process data written, etc. on a per-process basis; however,
when a process closes the device, I do not get a "close" call for each
process closing the device. I instead get a close only on the last
process closing the device.

This is a problem since I need to allocate/free resources for each
process accessing the device, at the time a process closes the device.

Is there a way to make sure my driver gets all "close" calls ?

I could possibly get around this by using timeouts, but the
unpredictability of the accessing processes may make this very difficult
and suboptimal, so getting the "close" calls would be way better

Thank you all for any information on this

bruno

--

###########################################################################

        Bruno Schwander
        Senior Software Engineer

        Worldgate Communications, Inc
        email: [EMAIL PROTECTED]

############################################################################





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

Reply via email to