From d0f86d075bf5d59471d90503a24e30b57b44a1e5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 24 Jul 2024 20:01:51 -0400 Subject: kernel: device: Add write operation Signed-off-by: Ian Moffett --- sys/include/sys/device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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); -- cgit v1.2.3