summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_export.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-14 02:49:06 +0000
committerpeter <peter@FreeBSD.org>1997-09-14 02:49:06 +0000
commit1ffbda9a9e6adece3a5f47779636f5813e74b51f (patch)
tree2e56ea941422dbbdfc1b39ae24df7472d31111b2 /sys/kern/vfs_export.c
parent4a2b1a3ff1be799e69773c3f24571970cfe92203 (diff)
downloadFreeBSD-src-1ffbda9a9e6adece3a5f47779636f5813e74b51f.zip
FreeBSD-src-1ffbda9a9e6adece3a5f47779636f5813e74b51f.tar.gz
Provide a 'return true' poll vnode op rather than duplicating the
'do nothing' case all over the various filesystems.
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r--sys/kern/vfs_export.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index bed6d76..8a2d1b5 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.101 1997/09/07 16:20:46 bde Exp $
+ * $Id: vfs_subr.c,v 1.102 1997/09/13 15:02:28 peter Exp $
*/
/*
@@ -54,6 +54,7 @@
#include <sys/stat.h>
#include <sys/buf.h>
#include <sys/malloc.h>
+#include <sys/poll.h>
#include <sys/domain.h>
#include <sys/dirent.h>
@@ -1627,6 +1628,25 @@ loop:
}
/*
+ * Return true for select/poll.
+ */
+int
+vop_nopoll(ap)
+ struct vop_poll_args /* {
+ struct vnode *a_vp;
+ int a_events;
+ struct ucred *a_cred;
+ struct proc *a_p;
+ } */ *ap;
+{
+
+ /*
+ * Just return what we were asked for.
+ */
+ return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
+}
+
+/*
* Print out a description of a vnode.
*/
static char *typename[] =
OpenPOWER on IntegriCloud