summaryrefslogtreecommitdiff
path: root/sys/include/fs
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-18 14:36:41 -0400
committerIan Moffett <ian@osmora.org>2024-04-18 14:36:41 -0400
commit691302ee1f22a5458c4dab3d5f85cc3de9332bb5 (patch)
tree34171f0c5c27d005b6718a5c8a383782a7b39de7 /sys/include/fs
parentb0c1b65926d66482099e958e6218e8890531e47f (diff)
kernel: devfs: Add devfs_get_dev()
Add helper to get a device descriptor from a vnode Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/fs')
-rw-r--r--sys/include/fs/devfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/fs/devfs.h b/sys/include/fs/devfs.h
index 7f32f8c..66128ef 100644
--- a/sys/include/fs/devfs.h
+++ b/sys/include/fs/devfs.h
@@ -37,5 +37,6 @@ extern struct vfsops g_devfs_ops;
extern struct vops g_devfs_vops;
int devfs_add_dev(const char *name, const struct device *dev);
+int devfs_get_dev(struct vnode *vp, struct device **res);
#endif