Next: Device Read, Previous: Device Open, Up: Device Interface
The function
device_closedecrements 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_SUCCESSif the device was successfully closed andD_NO_SUCH_DEVICEif device does not denote a device port.