/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kspoll.c | 50 * success, "events" is set to 51 * 0 on timeout or no events(timout = 0), 83 t_kspoll(TIUSER *tiptr, int timo, int waitflg, int *events) argument 97 if (events == NULL || ((waitflg & READWAIT) == 0)) 124 /* Set the return *events. */ 127 *events = 0; 132 *events = 1;
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | event_port.c | 59 port_associate(int port, int source, uintptr_t object, int events, void *user) argument 62 r.r_vals = _portfs(PORT_ASSOCIATE, port, source, object, events, 112 port_send(int port, int events, void *user) argument 115 r.r_vals = _portfs(PORT_SEND, port, events, (uintptr_t)user, NULL, 126 _port_dispatch(int port, int flags, int source, int events, uintptr_t object, argument 131 r.r_vals = _portfs(PORT_DISPATCH, port, source, events, object, 135 source, events, object, (uintptr_t)user); 140 port_sendn(int ports[], int errors[], uint_t nent, int events, void *user) argument 148 (uintptr_t)ports, (uintptr_t)errors, nent, events, 163 lnent, events, (uintptr_ 178 port_alert(int port, int flags, int events, void *user) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | epoll.c | 56 * Events that we ignore entirely. They can be set in events, but they will 123 uint32_t events, ev = 0; local 135 * In the modify case, we pass down two events: one to 138 epoll[i++].dpep_pollfd.events = POLLREMOVE; 144 * Mask off the events that we ignore, and then swizzle the 145 * events for which our values differ from their epoll(7) 148 events = event->events; 149 ev = events & ~(EPOLLIGNORED | EPOLLSWIZZLED); 151 if (events 201 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) argument 219 epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask) argument [all...] |
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | poll_solaris.c | 50 "for the event(s) specified in the subscript \b.events\b." 52 "application can read or write data, or on which certain events have " 55 "and the events of interest for each file descriptor. " 60 "[+?\b.events\b # requested events]" 92 "events member.]" 100 "the events member.]" 103 "revents member; it is not used in the events " 108 "[+?If the value fd is less than 0, events is ignored and " 113 "variable to indicate which of the requested events ar 196 int events = 0; local 214 poll_eventstostr(char *s, int events) argument [all...] |
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | eh.c | 89 * notes: it is assumed all events related to this eh have been unregistered 108 * iu_stop_handling_events(): informs the event handler to stop handling events 190 * int: the descriptor on which to listen for events. must be 192 * short: the events to listen for on that descriptor 199 iu_register_event(iu_eh_t *eh, int fd, short events, iu_eh_callback_t *callback, argument 212 * times for different callbacks depending on its events. if 215 * on `events'. 222 eh->iueh_pollfds[fd].events = events; 263 * iu_handle_events(): begins handling events o [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | script_handler.c | 250 script_exit(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) argument
|
H A D | request.c | 974 dhcp_acknak_global(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, argument 1096 dhcp_packet_lif(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, argument
|
/illumos-gate/usr/src/cmd/svc/common/ |
H A D | notify_params.c | 37 static struct events { struct
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | mlisten.c | 80 PollFdList[0].events = POLLIN; 87 mlistenadd(MESG * md, short events) argument 126 fdp->events = events; 199 ** If there are no unserviced events pending, call poll(2) 254 PollFdList[x].events = POLLIN; 256 PollFdList[x].events |= POLLOUT;
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | epoll.h | 38 uint32_t events; /* events */ member in struct:epoll_event 78 extern int epoll_wait(int epfd, struct epoll_event *events, 80 extern int epoll_pwait(int epfd, struct epoll_event *events,
|
H A D | poll.h | 50 short events; /* events of interest on fd */ member in struct:pollfd 51 short revents; /* events that occurred on fd */ 57 * Testable select events 71 * Non-testable poll events (may not be specified in events field, 79 * These events will never be specified in revents, but may be specified in 80 * events to control /dev/poll behavior.
|
/illumos-gate/usr/src/uts/common/fs/portfs/ |
H A D | port_vnops.c | 76 * port_discard_events() scans the port event queue for events owned 77 * by current proc. Non-shareable events will be discarded, all other 78 * events remain in the event queue. 108 * Free all kernel events structures which are still in the event queue. 114 int events; /* ignore events */ local 122 &events, pkevp->portkev_pid, PORT_CALLBACK_CLOSE, local 148 * - pending and delivered events will be discarded. 251 /* Wait for outstanding events */ 268 * Now all events ar 284 port_poll(vnode_t *vp, short events, int anyyet, short *reventsp, struct pollhead **phpp, caller_context_t *ct) argument [all...] |
H A D | port_fd.c | 38 #define PORTHASH_START 256 /* start cache space for events */ 52 * events. In the port_fd_callback() case the "arg" is a pointer to portfd_t 72 * retrieve of events from that fd. 79 port_fd_callback(void *arg, int *events, pid_t pid, int flag, void *evp) argument 87 ASSERT((pdp != NULL) && (events != NULL)); 93 * events from this fd. 97 error = EACCES; /* deny delivery of events */ 102 error = EACCES; /* deny delivery of events */ 106 *events = pdp->pd_portev->portkev_events; /* update events */ 177 port_associate_fd(port_t *pp, int source, uintptr_t object, int events, void *user) argument [all...] |
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | process.c | 48 ct_pr_tmpl_set_fatal(int fd, uint_t events) argument 50 return (ct_tmpl_set_internal(fd, CTPP_EV_FATAL, events)); 78 ct_pr_tmpl_get_fatal(int fd, uint_t *events) argument 80 return (ct_tmpl_get_internal(fd, CTPP_EV_FATAL, events));
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | events.c | 49 static struct event_list *events = NULL; variable in typeref:struct:event_list 59 * wait for a few seconds for all of the add events to come in and then 117 } else if (events != NULL) { 120 event = events->event; 121 tmpp = events->next; 122 free(events); 123 events = tmpp; 275 if (events == NULL) { 277 events = (struct event_list *)malloc(sizeof (struct event_list)); 278 if (events [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | util.c | 185 set_pollfd(int fd, uint16_t events) argument 207 p->events = events; 220 p->events = 0;
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_event.c | 50 * CTFS routines for the /system/contract/<type>/<ctid>/events vnode. 101 * process bundle queue listeners by definition may view all events 148 ctfs_endpoint_poll(ctfs_endpoint_t *endpt, short events, int anyyet, argument 151 if ((events & POLLIN) && endpt->ctfs_endpt_listener.ctl_position) { 316 short events, 324 return (ctfs_endpoint_poll(&evnode->ctfs_ev_listener, events, anyyet, 476 short events, 484 return (ctfs_endpoint_poll(&bunode->ctfs_bu_listener, events, anyyet, 314 ctfs_ev_poll( vnode_t *vp, short events, int anyyet, short *reventsp, pollhead_t **php, caller_context_t *ct) argument 474 ctfs_bu_poll( vnode_t *vp, short events, int anyyet, short *reventsp, pollhead_t **php, caller_context_t *ct) argument
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 99 int events, fmode, timo, waitflg; local 122 events = 0; 125 error = t_kspoll(nbp->nbp_tiptr, timo, waitflg, &events); 126 if (!error && !events)
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sock_notsupp.c | 126 sock_poll_notsupp(sock_lower_handle_t handle, short events, int anyyet, argument
|
H A D | sockcommon_vnops.c | 474 socket_vop_poll(struct vnode *vp, short events, int anyyet, short *reventsp, argument 481 return (socket_poll(so, events, anyyet, reventsp, phpp));
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_ddi.c | 406 audio_chpoll(dev_t dev, short events, int anyyet, short *reventsp, argument 417 c->c_chpoll(c, events, anyyet, reventsp, phpp);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cons.c | 488 cnpoll(dev_t dev, short events, int anyyet, short *reventsp, argument 492 return (nochpoll(dev, events, anyyet, reventsp, phpp)); 495 return (strpoll(rconsvp->v_stream, events, anyyet, reventsp, 498 return (cdev_poll(rconsdev, events, anyyet, reventsp, phpp));
|
H A D | gentty.c | 339 sypoll(dev_t dev, short events, int anyyet, short *reventsp, argument 353 error = VOP_POLL(sp->s_vp, events, anyyet, reventsp, phpp, NULL);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | port_subr.c | 87 * if the port's fd needs to be notified of poll events. If yes, 96 int events = 0; local 105 * added to the pollhead between the time it notifies poll events 112 events = POLLIN; 115 return (events); 133 * trigerred events to a port. All the data required for the event management 166 * that new events are available. 175 /* Check if thread is in port_close() waiting for outstanding events */ 177 /* Check if all outstanding events are already in port queue */ 184 * No thread retrieving events [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/ |
H A D | sol_uverbs_event.c | 146 * by sol_ucma, do not return events. Either return EAGAIN (if 170 "event_file_read - no events, no block"); 228 * events - The events that may occur. 233 * reventssp - A pointer updated to return a bitmask of events specified. 241 * channel in asynchronous type environment. If events may be read 247 sol_uverbs_event_file_poll(uverbs_ufile_uobj_t *ufile, short events, argument 254 ufile, events); 273 if ((events & (POLLIN | POLLRDNORM)) && 303 * is_async - Indicates the file is for asynchronous events i [all...] |