diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-21 22:15:27 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-21 22:15:27 -0400 |
commit | 9a4ec7539041f9ff25b947b2716aded028c0291f (patch) | |
tree | 2873062f44972cc4e023df8a481357cb9288802d /sys/kern/vfs_subr.c | |
parent | 8d49b45994abba0257a2ae351297bea33d51c07a (diff) |
kernel: vfs: Add support for close VOP
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index f760831..60afa31 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -247,3 +247,12 @@ int vfs_open(struct vnode *vp) return vp->vops->open(vp); } + +int +vfs_close(struct vnode *vp) +{ + if (vp->vops->close == NULL) + return -EIO; + + return vp->vops->close(vp); +} |