dev_close
error = dev_close(dev, flag, OTYP_CHR, cr);
error = dev_close(dev, flag, OTYP_BLK, cr);
extern int dev_close(dev_t, int, int, cred_t *);