Searched defs:events (Results 1 - 25 of 220) sorted by last modified time

123456789

/freebsd-head/sys/kern/
H A Dvfs_subr.c4945 * Record a process's interest in events which might happen to
4948 * pending events'' and the ``record my interest in future events''
4953 vn_pollrecord(struct vnode *vp, struct thread *td, int events) argument
4958 if (vp->v_pollinfo->vpi_revents & events) {
4960 * This leaves events we are not interested
4966 events &= vp->v_pollinfo->vpi_revents;
4967 vp->v_pollinfo->vpi_revents &= ~events;
4970 return (events);
4972 vp->v_pollinfo->vpi_events |= events;
[all...]
H A Dkern_descrip.c4398 badfo_poll(struct file *fp, int events, struct ucred *active_cred, argument
4499 invfo_poll(struct file *fp, int events, struct ucred *active_cred, argument
4503 return (poll_no_poll(events));
H A Dvfs_vnops.c1631 vn_poll(struct file *fp, int events, struct ucred *active_cred, argument
1646 error = VOP_POLL(vp, events, fp->f_cred, td);
H A Dsubr_bus.c555 devpoll(struct cdev *dev, int events, struct thread *td) argument
560 if (events & (POLLIN | POLLRDNORM)) {
562 revents = events & (POLLIN | POLLRDNORM);
1227 * If we're frozen, we don't generate NOMATCH events. Mark to
5670 * We also defer no-match events during a freeze. Walk the tree and
5671 * generate all the pent-up events that are still relevant.
H A Duipc_socket.c3488 sopoll(struct socket *so, int events, struct ucred *active_cred, argument
3496 return (so->so_proto->pr_usrreqs->pru_sopoll(so, events, active_cred,
3501 sopoll_generic(struct socket *so, int events, struct ucred *active_cred, argument
3508 if (!(events & (POLLIN | POLLRDNORM)))
3511 revents = events & (POLLIN | POLLRDNORM);
3512 else if ((events & POLLINIGNEOF) == 0 && so->so_error)
3513 revents = (events & (POLLIN | POLLRDNORM)) | POLLHUP;
3522 if (events & (POLLIN | POLLRDNORM))
3524 revents |= events & (POLLIN | POLLRDNORM);
3525 if (events
3760 pru_sopoll_notsupp(struct socket *so, int events, struct ucred *cred, struct thread *td) argument
[all...]
H A Dtty.c629 ttydev_poll(struct cdev *dev, int events, struct thread *td) argument
636 return ((events & (POLLIN|POLLRDNORM)) | POLLHUP);
638 if (events & (POLLIN|POLLRDNORM)) {
641 revents |= events & (POLLIN|POLLRDNORM);
647 } else if (events & (POLLOUT|POLLWRNORM)) {
650 revents |= events & (POLLOUT|POLLWRNORM);
654 if (events & (POLLIN|POLLRDNORM))
656 if (events & (POLLOUT|POLLWRNORM))
H A Dsys_pipe.c1399 pipe_poll(struct file *fp, int events, struct ucred *active_cred, argument
1418 if (fp->f_flag & FREAD && events & (POLLIN | POLLRDNORM))
1420 revents |= events & (POLLIN | POLLRDNORM);
1422 if (fp->f_flag & FWRITE && events & (POLLOUT | POLLWRNORM))
1428 revents |= events & (POLLOUT | POLLWRNORM);
1430 levents = events &
1434 events |= POLLINIGNEOF;
1436 if ((events & POLLINIGNEOF) == 0) {
1439 revents |= (events & (POLLIN | POLLRDNORM));
1447 if (fp->f_flag & FREAD && events
[all...]
H A Dkern_event.c563 * of the event, we need to register new events to
592 * Then register another knote to track other potential events
823 * - clear the count of expiration events
1437 * we should be able to support events on ourselves.
1785 * Scan, update kn_data (if not ONESHOT), and copyout triggered events.
2038 kqueue_poll(struct file *fp, int events, struct ucred *active_cred, argument
2049 if (events & (POLLIN | POLLRDNORM)) {
2051 revents |= events & (POLLIN | POLLRDNORM);
2258 * or other threads could remove events.
H A Dsys_generic.c145 #define SELTD_PENDING 0x0001 /* We have pending events. */
864 poll_no_poll(int events) argument
873 if (events & ~POLLSTANDARD)
876 return (events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
1213 * Set the appropriate output bits given a mask of fired events and the
1217 selsetbits(fd_mask **ibits, fd_mask **obits, int idx, fd_mask bit, int events) argument
1224 if ((events & select_flags[msk]) == 0)
1313 /* Compute the list of events we're interested in. */
1519 fd->revents = fo_poll(fp, fd->events, td->td_ucred, td);
1581 fds->revents = fo_poll(fp, fds->events,
1607 selsocket(struct socket *so, int events, struct timeval *tvp, struct thread *td) argument
[all...]
/freebsd-head/sys/amd64/linux/
H A Dlinux_proto.h814 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_wait_args
1038 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_pwait_args
H A Dlinux.h426 l_short events; member in struct:l_pollfd
/freebsd-head/sys/amd64/linux32/
H A Dlinux32_proto.h829 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_wait_args
1111 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_pwait_args
/freebsd-head/sys/arm64/linux/
H A Dlinux_proto.h126 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_pwait_args
/freebsd-head/sys/i386/linux/
H A Dlinux_proto.h828 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_wait_args
1106 char events_l_[PADL_(struct epoll_event *)]; struct epoll_event * events; char events_r_[PADR_(struct epoll_event *)]; member in struct:linux_epoll_pwait_args
/freebsd-head/sys/dev/random/
H A Drandomdev.c356 randomdev_poll(struct cdev *dev __unused, int events, struct thread *td __unused) argument
359 if (events & (POLLIN | POLLRDNORM)) {
361 events &= (POLLIN | POLLRDNORM);
365 return (events);
/freebsd-head/sys/netinet/
H A Dsctp_usrreq.c2101 struct sctp_event_subscribe *events; local
2103 SCTP_CHECK_AND_CAST(events, optval, struct sctp_event_subscribe, *optsize);
2104 memset(events, 0, sizeof(struct sctp_event_subscribe));
2107 events->sctp_data_io_event = 1;
2110 events->sctp_association_event = 1;
2113 events->sctp_address_event = 1;
2116 events->sctp_send_failure_event = 1;
2119 events->sctp_peer_error_event = 1;
2122 events->sctp_shutdown_event = 1;
2125 events
5052 struct sctp_event_subscribe *events; local
[all...]
/freebsd-head/sys/net/
H A Dbpf.c2099 bpfpoll(struct cdev *dev, int events, struct thread *td) argument
2105 return (events &
2111 revents = events & (POLLOUT | POLLWRNORM);
2114 if (events & (POLLIN | POLLRDNORM)) {
2116 revents |= events & (POLLIN | POLLRDNORM);
/freebsd-head/sys/fs/devfs/
H A Ddevfs_vnops.c89 SX_SYSINIT(clone_drain_lock, &clone_drain_lock, "clone events drain lock");
1248 devfs_poll_f(struct file *fp, int events, struct ucred *cred, struct thread *td) argument
1258 error = vnops.fo_poll(fp, events, cred, td);
1261 error = dsw->d_poll(dev, events, td);
/freebsd-head/sys/sys/
H A Dfile.h106 typedef int fo_poll_t(struct file *fp, int events,
343 fo_poll(struct file *fp, int events, struct ucred *active_cred, argument
347 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td));
/freebsd-head/sys/compat/linux/
H A Dlinux_event.c90 uint32_t events; member in struct:epoll_event
304 uint32_t levents = l_event->events;
365 l_event->events = LINUX_EPOLLERR;
372 l_event->events = LINUX_EPOLLIN;
374 l_event->events |= LINUX_EPOLLRDHUP;
377 l_event->events = LINUX_EPOLLOUT;
384 * events to epoll events and copies them back to the
538 linux_epoll_wait_common(struct thread *td, int epfd, struct epoll_event *events, argument
579 coargs.leventlist = events;
860 eventfd_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument
1105 timerfd_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument
[all...]
/freebsd-head/lib/libusb/
H A Dlibusb.h279 short events; member in struct:libusb_pollfd
295 typedef void (*libusb_pollfd_added_cb) (int fd, short events, void *user_data);
581 int libusb_hotplug_register_callback(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *handle);
/freebsd-head/sys/dev/atkbdc/
H A Dpsm.c3118 * enhanced mouse modes during switch events.
3191 * and wheel events
3702 /* Add hysteresis to remove spurious middle button events */
3724 /* Filter out middle button events induced by some w values */
5037 * wheel events
5259 psmpoll(struct cdev *dev, int events, struct thread *td) argument
5267 if (events & (POLLIN | POLLRDNORM)) {
5269 revents |= events & (POLLIN | POLLRDNORM);
5527 * the wheel and the fourth button events are encoded in the
/freebsd-head/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c1467 linux_file_poll(struct file *file, int events, struct ucred *active_cred, argument
1481 LINUX_POLL_TABLE_NORMAL)) & events;
/freebsd-head/sys/dev/xen/evtchn/
H A Devtchn_dev.c170 * Protect against concurrent events using this handler
532 evtchn_poll(struct cdev *dev, int events, struct thread *td) argument
542 mask = events & (POLLOUT | POLLWRNORM);
545 if (events & (POLLIN | POLLRDNORM)) {
547 mask |= events & (POLLIN | POLLRDNORM);
/freebsd-head/sys/dev/sound/pcm/
H A Ddsp.c2170 dsp_poll(struct cdev *i_dev, int events, struct thread *td) argument
2179 return (events & (POLLHUP | POLLPRI | POLLIN |
2191 e = (events & (POLLOUT | POLLWRNORM));
2197 e = (events & (POLLIN | POLLRDNORM));

Completed in 301 milliseconds

123456789