aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-18 14:33:50 -0400
committerIan Moffett <ian@osmora.org>2024-04-18 14:33:50 -0400
commitb0c1b65926d66482099e958e6218e8890531e47f (patch)
tree3859e16f2d29b7ffd847acce1c46e9ae7d38eafa /sys/fs
parent8575c3bf131c42841b66aae7acf96b7310524f56 (diff)
kernel: devfs: Rename devfs_add_blkdev()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/devfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/devfs.c b/sys/fs/devfs.c
index 42150e6..7e7fd9d 100644
--- a/sys/fs/devfs.c
+++ b/sys/fs/devfs.c
@@ -183,7 +183,7 @@ devfs_make_devicenode(const char *name, struct device_node **node_out)
}
int
-devfs_add_blkdev(const char *name, const struct device *blkdev)
+devfs_add_dev(const char *name, const struct device *dev)
{
struct device_node *node;
int status;
@@ -192,9 +192,9 @@ devfs_add_blkdev(const char *name, const struct device *blkdev)
return status;
}
- node->major = blkdev->major;
- node->minor = blkdev->minor;
- node->is_block = 1;
+ node->major = dev->major;
+ node->minor = dev->minor;
+ node->is_block = dev->blocksize > 1;
TAILQ_INSERT_HEAD(&nodes, node, link);
return 0;
}