aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-27 19:27:12 -0400
committerIan Moffett <ian@osmora.org>2024-03-27 19:27:12 -0400
commit380da5fe2e8ef39cfca6e92ef53c1b3f44ab77c6 (patch)
tree70c770fd0dd82a173c5da8c0003c9c735dc3910e /sys/kern
parent7f27268c86bcb54a79854bb16d3c2631cb10ff80 (diff)
kernel: vfs: Add getattr vop
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index bbaec12..cd16704 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -229,3 +229,9 @@ vfs_read(struct vnode *vp, struct sio_txn *sio)
{
return vp->vops->read(vp, sio);
}
+
+int
+vfs_getattr(struct vnode *vp, struct vattr *vattr)
+{
+ return vp->vops->getattr(vp, vattr);
+}