From 691302ee1f22a5458c4dab3d5f85cc3de9332bb5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 18 Apr 2024 14:36:41 -0400 Subject: kernel: devfs: Add devfs_get_dev() Add helper to get a device descriptor from a vnode Signed-off-by: Ian Moffett --- sys/include/fs/devfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include') 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 -- cgit v1.2.3