diff options
-rw-r--r-- | sys/include/sys/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/device.h b/sys/include/sys/device.h index edf83ae..e0aef23 100644 --- a/sys/include/sys/device.h +++ b/sys/include/sys/device.h @@ -42,10 +42,12 @@ typedef uint8_t dev_t; struct cdevsw { int(*read)(dev_t dev, struct sio_txn *sio, int flags); + int(*write)(dev_t dev, struct sio_txn *sio, int flags); }; struct bdevsw { int(*read)(dev_t dev, struct sio_txn *sio, int flags); + int(*write)(dev_t dev, struct sio_txn *sio, int flags); }; void *dev_get(devmajor_t major, dev_t dev); |