summaryrefslogtreecommitdiffstats
path: root/sys/sys/systm.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-03-06 15:35:37 +0000
committerkib <kib@FreeBSD.org>2009-03-06 15:35:37 +0000
commit84bab6f2a5f7b42982b7a5b58805d10cb9d29094 (patch)
tree2a39e9e4c6d5ba830ca005f28538680b257d514a /sys/sys/systm.h
parent02189c9e63999a6f37cb1f690929e719fea7bb92 (diff)
downloadFreeBSD-src-84bab6f2a5f7b42982b7a5b58805d10cb9d29094.zip
FreeBSD-src-84bab6f2a5f7b42982b7a5b58805d10cb9d29094.tar.gz
Extract the no_poll() and vop_nopoll() code into the common routine
poll_no_poll(). Return a poll_no_poll() result from devfs_poll_f() when filedescriptor does not reference the live cdev, instead of ENXIO. Noted and tested by: hps MFC after: 1 week
Diffstat (limited to 'sys/sys/systm.h')
-rw-r--r--sys/sys/systm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 5dba512..31fb750 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -317,6 +317,8 @@ struct cdev;
dev_t dev2udev(struct cdev *x);
const char *devtoname(struct cdev *cdev);
+int poll_no_poll(int events);
+
/* XXX: Should be void nanodelay(u_int nsec); */
void DELAY(int usec);
OpenPOWER on IntegriCloud