Lines Matching defs:dev

55 static	dp_entry_t	**devpolltbl;	/* dev poll entries */
58 static kmutex_t devpoll_lock; /* lock protecting dev tbl */
59 int devpoll_init; /* is /dev/poll initialized already */
64 static int dpwrite(dev_t dev, struct uio *uiop, cred_t *credp);
65 static int dpioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp,
67 static int dppoll(dev_t dev, short events, int anyyet, short *reventsp,
69 static int dpclose(dev_t dev, int flag, int otyp, cred_t *credp);
116 "/dev/poll driver",
135 * The /dev/poll driver shares most of its code with poll sys call whose
140 * This assumption is not true for /dev/poll; hence the need for extra
143 * To allow more parallelism, each /dev/poll file descriptor (indexed by
146 * /dev/poll fd. However, we prevent writes from being starved by giving
237 * differences are: (1) /dev/poll requires scanning the bitmap starting at
244 * poll(2) caches but NOT for /dev/poll caches. So expect some
612 * to create instances of /dev/poll for their children. (In the
629 * Write to dev/poll add/remove fd's to/from a cached poll fd set,
634 dpwrite(dev_t dev, struct uio *uiop, cred_t *credp)
652 minor = getminor(dev);
704 * Although /dev/poll uses the write(2) interface to cache fds, it's
759 * Since the dpwrite() may recursively walk an added /dev/poll handle,
979 * /dev/poll handles. To ensure that proper event propagation occurs,
1018 dpioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp)
1033 minor = getminor(dev);
1369 * It is possible for /dev/poll to poll for events on file descriptors which
1370 * themselves are /dev/poll handles. Pending events in the child handle are
1372 * this recursion is presently allowed on only /dev/poll handles which have
1378 * The recursive /dev/poll implementation begins by extending dppoll() to
1385 * which corresponds to the child /dev/poll fd. This means that child
1391 * Recursive /dev/poll avoids complicated pollcache locking constraints during
1394 * /dev/poll "tree", pcachelink_t structures are established to all child
1395 * /dev/poll pollcaches. During pollnotify() in a child pollcache, the
1416 * Descending through a tree of recursive /dev/poll handles involves the tricky
1420 * pollstate_exit() functions provide an interface for recursive /dev/poll
1428 dppoll(dev_t dev, short events, int anyyet, short *reventsp,
1436 minor = getminor(dev);
1496 * reference of this /dev/poll fd can close.
1500 dpclose(dev_t dev, int flag, int otyp, cred_t *credp)
1509 minor = getminor(dev);
1520 * /dev/poll fd. This pollcache is going away, so do the clean
1543 /* Clean up any pollcache links created via recursive /dev/poll */