Writing Device Drivers

close(9E)

int xxclose(dev_t dev, int flag, int otyp, cred_t *credp); 

close(9E) should perform any cleanup necessary to finish using the minor device, and prepare the device (and driver) to be opened again. For example, the open routine might have been invoked with the exclusive access (FEXCL) flag. A call to close(9E) would allow further opens to continue. Other functions that close(9E) might perform are: