summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-20 12:24:11 -0400
committerIan Moffett <ian@osmora.org>2024-05-20 12:24:11 -0400
commitc1aeb575a2938b580873e30c1210daed92312657 (patch)
tree8bab941f54f43b2f8e203b55dc19a33f48e54a72
parente4328cd3fbc923f0525ff93990a09150cd03db62 (diff)
kernel: tty: Improve hook naming consistency
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/kern/kern_tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_tty.c b/sys/kern/kern_tty.c
index c353a9d..e563ad8 100644
--- a/sys/kern/kern_tty.c
+++ b/sys/kern/kern_tty.c
@@ -155,7 +155,7 @@ tty_dev_read(struct device *dev, struct sio_txn *sio)
}
static int
-tty_ioctl(struct device *dev, uint32_t cmd, uintptr_t arg)
+tty_dev_ioctl(struct device *dev, uint32_t cmd, uintptr_t arg)
{
/* TODO: Support multiple TTYs */
struct termios *tp = &g_root_tty.termios;
@@ -175,7 +175,7 @@ tty_ioctl(struct device *dev, uint32_t cmd, uintptr_t arg)
}
static int
-tty_open(struct device *dev)
+tty_dev_open(struct device *dev)
{
/* TODO: Support multiple TTYs */
struct tty *tty = &g_root_tty;
@@ -299,8 +299,8 @@ tty_attach(struct tty *tty)
return tmp;
dev->read = tty_dev_read;
- dev->ioctl = tty_ioctl;
- dev->open = tty_open;
+ dev->ioctl = tty_dev_ioctl;
+ dev->open = tty_dev_open;
dev->blocksize = 1;
snprintf(devname, sizeof(devname), "tty%d", tty->id);