Next: Device Read, Previous: Device Open, Up: Device Interface
The function
device_close
decrements the open count of the device by one. If the open count drops to zero, the close handler for the device is called. The device to close is specified by its port device.The function returns
D_SUCCESS
if the device was successfully closed andD_NO_SUCH_DEVICE
if device does not denote a device port.