I can't find a better place to ask this, so if someone could suggest a
different forum please e-mail me.
This question relates to device driver development in the 2.0.x and
2.2.x kernels.
I've written a device driver for a home-built interface card. When
the device is opened, it sends a command to the hardware to activate
the device (in the *_open() driver call) and when the device is
released (in the *_release() driver call) it deactivates the device.
When a program which use this driver terminates normally, the device
is deactivated. If a program using this driver is terminated
abnormally (such as with a control-c from the shell), the device is
not deactivated. Using printk() in the _release procedure shows that
it is called in each case; however, the status codes returned from
the hardware after sending the deactivation sequence is different.
I can't figure out what could be different. Could someone suggest
a starting point?
---------------
Ken Hughes
------------
Sent via Deja.com http://www.deja.com/
Before you buy.