Searched defs:events (Results 76 - 100 of 220) sorted by relevance

123456789

/freebsd-head/sys/dev/random/
H A Drandomdev.c357 randomdev_poll(struct cdev *dev __unused, int events, struct thread *td __unused) argument
360 if (events & (POLLIN | POLLRDNORM)) {
362 events &= (POLLIN | POLLRDNORM);
366 return (events);
/freebsd-head/contrib/unbound/util/
H A Dwinsock_event.c202 /** handle is_signal events and see if signalled */
251 timeout = 0; /* no waiting, we have sticky events */
258 continue; /* skip timer only events */
280 0); /* we are not alertable (IO completion events) */
302 startidx = 0; /* process all events, some are sticky */
509 long events = 0; local
517 events |= FD_READ;
519 events |= FD_WRITE;
528 events |= FD_CLOSE;
530 events |
[all...]
/freebsd-head/sys/netgraph/
H A Dng_device.c487 ngdpoll(struct cdev *dev, int events, struct thread *td) argument
492 if (events & (POLLIN | POLLRDNORM) &&
494 revents |= events & (POLLIN | POLLRDNORM);
/freebsd-head/sys/dev/firewire/
H A Dfwmem.c429 fwmem_poll(struct cdev *dev, int events, fw_proc *td) argument
H A Dfwdev.c822 fw_poll(struct cdev *dev, int events, fw_proc *td) argument
829 return fwmem_poll(dev, events, td);
834 if (events & tmp) {
841 if (events & tmp) {
/freebsd-head/sys/contrib/ipfilter/netinet/
H A Dmlfk_ipl.c140 static int ipfpoll(struct cdev *dev, int events, struct thread *td);
154 static int ipfpoll(dev_t dev, int events, struct proc *td);
447 ipfpoll(struct cdev *dev, int events, struct thread *td) argument
449 ipfpoll(dev_t dev, int events, struct proc *td)
467 if ((events & (POLLIN | POLLRDNORM)) && ipf_log_canread(&V_ipfmain, unit))
468 revents |= events & (POLLIN | POLLRDNORM);
472 if ((events & (POLLIN | POLLRDNORM)) && ipf_auth_waiting(&V_ipfmain))
473 revents |= events & (POLLIN | POLLRDNORM);
476 if ((events & (POLLIN | POLLRDNORM)) && ipf_sync_canread(&V_ipfmain))
477 revents |= events
[all...]
/freebsd-head/sys/dev/adb/
H A Dadb_mouse.c334 adb_tapping_sysctl, "I", "Tapping the pad causes button events");
407 * high button events when they are touched.
466 ams_poll(struct cdev *dev, int events, struct thread *p) argument
474 if (events & (POLLIN | POLLRDNORM)) {
481 events = 0;
483 events &= (POLLIN | POLLRDNORM);
489 return events;
/freebsd-head/sys/kern/
H A Dsys_socket.c271 soo_poll(struct file *fp, int events, struct ucred *active_cred, argument
282 return (sopoll(so, events, fp->f_cred, td));
H A Dtty_pts.c130 * the first byte contains a bitmask of events that
393 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, argument
405 return ((events & (POLLIN|POLLRDNORM)) | POLLHUP);
408 if (events & (POLLIN|POLLRDNORM)) {
412 revents |= events & (POLLIN|POLLRDNORM);
414 if (events & (POLLOUT|POLLWRNORM)) {
417 revents |= events & (POLLOUT|POLLWRNORM);
429 * poll events on this side is the opposite of the slave
432 if (events & (POLLIN|POLLRDNORM))
434 if (events
[all...]
/freebsd-head/usr.sbin/ypldap/
H A Dypldap.c351 main_dispatch_client(int fd, short events, void *p) argument
361 if ((events & (EV_READ | EV_WRITE)) == 0)
364 if (events & EV_READ) {
370 if (events & EV_WRITE) {
594 env.sc_iev->events = EV_READ;
596 event_set(&env.sc_iev->ev, env.sc_iev->ibuf.fd, env.sc_iev->events,
633 iev->events = EV_READ;
635 iev->events |= EV_WRITE;
638 event_set(&iev->ev, iev->ibuf.fd, iev->events, iev->handler, iev->data);
/freebsd-head/contrib/pf/libevent/
H A Devent.c281 * Active events are stored in priority queues. Lower priorities are always
282 * process before higher priorities. Low priority events can starve high
323 * Wait continously for events. We exit only if no events are left.
379 /* Calculate the initial events that we are waiting for */
417 /* If we have no events, we just exit */
419 event_debug(("%s: no events registered.", __func__));
454 event_once_cb(int fd, short events, void *arg) argument
458 (*eonce->cb)(fd, events, eonce->arg);
465 event_once(int fd, short events, argument
509 event_set(struct event *ev, int fd, short events, void (*callback)(int, short, void *), void *arg) argument
[all...]
/freebsd-head/contrib/netbsd-tests/fs/puffs/h_dtfs/
H A Ddtfs_vnops.c281 dtfs_node_poll(struct puffs_usermount *pu, void *opc, int *events) argument
296 *events = *events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM);
/freebsd-head/lib/libthread_db/
H A Dthread_db.c71 td_ta_clear_event(const td_thragent_t *ta, td_thr_events_t *events) argument
73 return (ta->ta_ops->to_ta_clear_event(ta, events));
124 td_ta_set_event(const td_thragent_t *ta, td_thr_events_t *events) argument
126 return (ta->ta_ops->to_ta_set_event(ta, events));
146 td_thr_clear_event(const td_thrhandle_t *th, td_thr_events_t *events) argument
149 return (ta->ta_ops->to_thr_clear_event(th, events));
220 td_thr_set_event(const td_thrhandle_t *th, td_thr_events_t *events) argument
223 return (ta->ta_ops->to_thr_set_event(th, events));
/freebsd-head/share/examples/scsi_target/
H A Dscsi_target.c402 struct kevent events[MAX_EVENTS]; local
410 /* Set up some default events */
411 EV_SET(&events[0], SIGHUP, EVFILT_SIGNAL, EV_ADD|EV_ENABLE, 0, 0, 0);
412 EV_SET(&events[1], SIGINT, EVFILT_SIGNAL, EV_ADD|EV_ENABLE, 0, 0, 0);
413 EV_SET(&events[2], SIGTERM, EVFILT_SIGNAL, EV_ADD|EV_ENABLE, 0, 0, 0);
414 EV_SET(&events[3], targ_fd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0);
415 if (kevent(kq_fd, events, 4, NULL, 0, NULL) < 0)
429 retval = kevent(kq_fd, NULL, 0, events, MAX_EVENTS, tptr);
440 errx(1, "kevent returned more events than allocated?");
443 /* Process all received events
[all...]
/freebsd-head/usr.sbin/apmd/
H A Dapmd.c68 struct event_config events[EVENT_MAX] = { variable in typeref:struct:event_config
85 * List of battery events
267 p = events[n].cmdlist;
275 events[n].cmdlist = q;
344 /* enable events */
346 if (events[i].cmdlist) {
363 if ((p = events[i].cmdlist)) {
364 fprintf(stderr, "apm_event %s {\n", events[i].name);
397 /* disable events */
399 if (events[
[all...]
/freebsd-head/sys/dev/xen/evtchn/
H A Devtchn_dev.c170 * Protect against concurrent events using this handler
531 evtchn_poll(struct cdev *dev, int events, struct thread *td) argument
541 mask = events & (POLLOUT | POLLWRNORM);
544 if (events & (POLLIN | POLLRDNORM)) {
546 mask |= events & (POLLIN | POLLRDNORM);
/freebsd-head/sys/dev/xen/xenstore/
H A Dxenstore_dev.c393 xs_dev_poll(struct cdev *dev, int events, struct thread *td) argument
403 mask = events & (POLLOUT | POLLWRNORM);
405 if (events & (POLLIN | POLLRDNORM)) {
407 mask |= events & (POLLIN | POLLRDNORM);
/freebsd-head/contrib/wpa/src/utils/
H A Deloop_win.c2 * Event loop based on Windows events and WaitForMultipleObjects
53 struct eloop_event *events; member in struct:eloop_data
196 tmp = os_realloc_array(eloop.events, eloop.event_count + 1,
206 eloop.events = tmp;
217 if (eloop.events == NULL || eloop.event_count == 0 ||
222 if (eloop.events[i].event == h)
229 os_memmove(&eloop.events[i], &eloop.events[i + 1],
554 eloop.handles[count++] = eloop.events[i].event;
568 printf("WaitForMultipleObjects: Too many events
626 WSANETWORKEVENTS events; local
[all...]
/freebsd-head/sys/dev/sfxge/common/
H A Defx_mac.c800 __in boolean_t events)
816 if ((rc = emop->emo_stats_periodic(enp, esmp, period_ms, events)) != 0)
796 efx_mac_stats_periodic( __in efx_nic_t *enp, __in efsys_mem_t *esmp, __in uint16_t period_ms, __in boolean_t events) argument
/freebsd-head/usr.sbin/pmc/
H A Dcmd_pmc_filter.cc87 {"events", required_argument, NULL, 'e'},
96 "\t -e <events>, --events <events> -- comma-delimited list of events to filter on\n"
201 char *events, char *processes, char *threads, bool exclusive, bool json, int infd,
230 if (events)
231 parse_events(events, eventlist, &eventcount, cpuid);
304 char *lwps, *pids, *events, *processes, *threads; local
311 threads = processes = lwps = pids = events
200 pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidcount, char *events, char *processes, char *threads, bool exclusive, bool json, int infd, int outfd) argument
[all...]
/freebsd-head/sys/arm/ti/
H A Dti_i2c.c323 uint16_t events, status; local
336 events = ti_i2c_read_2(sc, I2C_REG_IRQENABLE_SET);
339 status &= events;
/freebsd-head/contrib/libpcap/rpcapd/
H A Drpcapd.c793 WSAEVENT *events; local
798 // How big does the set of events need to be?
810 // more than WSA_MAXIMUM_WAIT_EVENTS events
820 // Allocate the array of events.
822 events = (WSAEVENT *) malloc(num_events * sizeof (WSAEVENT));
823 if (events == NULL)
825 rpcapd_log(LOGPRIO_ERROR, "Can't allocate array of events which to listen");
832 events[0] = state_change_event; // state change event first
857 events[i] = event;
867 ret = WSAWaitForMultipleEvents(num_events, events, FALS
[all...]
/freebsd-head/sys/cam/ata/
H A Data_pmp.c106 int events; member in struct:pmp_softc
308 softc->events |= PMP_EV_RESCAN;
310 softc->events |= PMP_EV_RESET;
414 softc->events = PMP_EV_RESCAN;
839 if (softc->events & PMP_EV_RESCAN) {
857 softc->events = 0;
/freebsd-head/sys/dev/evdev/
H A Dcdev.c307 evdev_poll(struct cdev *dev, int events, struct thread *td) argument
322 if (events & (POLLIN | POLLRDNORM)) {
325 revents = events & (POLLIN | POLLRDNORM);
411 * Fix evdev state corrupted with discarding of kdb events.
828 * 2. Insert SYN_REPORT just now and skip remaining events
839 /* Allow users to read events only after report has been completed */
909 /* Remove empty SYN_REPORT events */
/freebsd-head/contrib/tnftp/
H A Dtnftp.h140 short events; member in struct:pollfd

Completed in 89 milliseconds

123456789