aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-24 20:01:51 -0400
committerIan Moffett <ian@osmora.org>2024-07-24 20:01:51 -0400
commitd0f86d075bf5d59471d90503a24e30b57b44a1e5 (patch)
tree7adee6a118f6cd69d5aee4dd16f7583aa6e86dbf /sys
parent322d41a2b01d70462fd2fa6a96d70b06a423e78b (diff)
kernel: device: Add write operation
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/device.h2
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);