svn commit: r366716 - in head/sys: kern sys
Mateusz Guzik
mjg at FreeBSD.org
Thu Oct 15 04:48:15 UTC 2020
Author: mjg
Date: Thu Oct 15 04:48:14 2020
New Revision: 366716
URL: https://svnweb.freebsd.org/changeset/base/366716
Log:
vfs: add VOP_EAGAIN
Can be used to stub fplookup for example.
Modified:
head/sys/kern/vfs_default.c
head/sys/sys/vnode.h
Modified: head/sys/kern/vfs_default.c
==============================================================================
--- head/sys/kern/vfs_default.c Thu Oct 15 03:12:00 2020 (r366715)
+++ head/sys/kern/vfs_default.c Thu Oct 15 04:48:14 2020 (r366716)
@@ -198,6 +198,13 @@ vop_enoent(struct vop_generic_args *ap)
}
int
+vop_eagain(struct vop_generic_args *ap)
+{
+
+ return (EAGAIN);
+}
+
+int
vop_null(struct vop_generic_args *ap)
{
Modified: head/sys/sys/vnode.h
==============================================================================
--- head/sys/sys/vnode.h Thu Oct 15 03:12:00 2020 (r366715)
+++ head/sys/sys/vnode.h Thu Oct 15 04:48:14 2020 (r366716)
@@ -828,6 +828,7 @@ int vop_ebadf(struct vop_generic_args *ap);
int vop_einval(struct vop_generic_args *ap);
int vop_enoent(struct vop_generic_args *ap);
int vop_enotty(struct vop_generic_args *ap);
+int vop_eagain(struct vop_generic_args *ap);
int vop_null(struct vop_generic_args *ap);
int vop_panic(struct vop_generic_args *ap);
int dead_poll(struct vop_poll_args *ap);
@@ -1001,6 +1002,7 @@ extern struct vop_vector default_vnodeops;
#define VOP_EINVAL ((void*)(uintptr_t)vop_einval)
#define VOP_ENOENT ((void*)(uintptr_t)vop_enoent)
#define VOP_EOPNOTSUPP ((void*)(uintptr_t)vop_eopnotsupp)
+#define VOP_EAGAIN ((void*)(uintptr_t)vop_eagain)
/* fifo_vnops.c */
int fifo_printinfo(struct vnode *);
More information about the svn-src-all
mailing list