Searched defs:events (Results 1 - 25 of 132) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kspoll.c50 * 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/uts/common/fs/zfs/lua/
H A Dltm.c52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { argument
53 const TValue *tm = luaH_getstr(events, ename);
56 events->flags |= cast_byte(1u<<event); /* cache this fact */
/illumos-gate/usr/src/lib/libc/port/sys/
H A Depoll.c56 * 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/uts/common/fs/smbsrv/
H A Dsmb_notify.c128 * the system CONTINUES to post events to the notify event buffer
131 * any events that were posted while they were "away". This is
132 * how clients track directory changes without missing events.
136 * Note that SMB "notify" calls are destructive to events, much like
140 * are waiting for events, the next event wakes them all, and
142 * whatever events are pending at the time they woke up.
175 * Check for events and consume, non-blocking.
177 * No events; caller must call "act2" next.
205 * events on the node. The corresponding unsubscribe
223 * If we already have events, consum
626 uint32_t filter, events; local
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Devent_port.c57 port_associate(int port, int source, uintptr_t object, int events, void *user) argument
60 r.r_vals = _portfs(PORT_ASSOCIATE, port, source, object, events,
110 port_send(int port, int events, void *user) argument
113 r.r_vals = _portfs(PORT_SEND, port, events, (uintptr_t)user, 0, 0);
123 _port_dispatch(int port, int flags, int source, int events, uintptr_t object, argument
128 r.r_vals = _portfs(PORT_DISPATCH, port, source, events, object,
132 source, events, object, (uintptr_t)user);
137 port_sendn(int ports[], int errors[], uint_t nent, int events, void *user) argument
145 (uintptr_t)ports, (uintptr_t)errors, nent, events,
160 lnent, events, (uintptr_
175 port_alert(int port, int flags, int events, void *user) argument
[all...]
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dpoll_solaris.c50 "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 Deh.c89 * 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/lp/lib/msgs/
H A Dmlisten.c80 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/cmd/cmd-inet/sbin/dhcpagent/
H A Dscript_handler.c250 script_exit(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, void *arg) argument
H A Drequest.c978 dhcp_acknak_global(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, argument
1100 dhcp_packet_lif(iu_eh_t *ehp, int fd, short events, iu_event_id_t id, argument
/illumos-gate/usr/src/uts/common/fs/portfs/
H A Dport_vnops.c76 * 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 Dport_fd.c38 #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/uts/common/sys/
H A Depoll.h38 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 Dpoll.h50 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/cmd/svc/common/
H A Dnotify_params.c37 static struct events { struct
/illumos-gate/usr/src/lib/libcontract/common/
H A Dprocess.c48 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/cmd/cmd-inet/usr.lib/inetd/
H A Dutil.c185 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 Dctfs_event.c50 * 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/sockfs/
H A Dsock_notsupp.c126 sock_poll_notsupp(sock_lower_handle_t handle, short events, int anyyet, argument
H A Dsockcommon_vnops.c475 socket_vop_poll(struct vnode *vp, short events, int anyyet, short *reventsp, argument
482 return (socket_poll(so, events, anyyet, reventsp, phpp));
/illumos-gate/usr/src/uts/common/os/
H A Dport_subr.c87 * 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...]
H A Dtimer.c430 * If a timer was ever programmed to send events to a port,
632 * - the events field of the port_event_t structure counts the
633 * number of timer fired events.
935 timer_port_callback(void *arg, int *events, pid_t pid, int flag, void *evp) argument
941 /* can not deliver timer events to another proc */
945 *events = it->it_pending; /* 1 = 1 event, >1 # of overflows */
951 * close-callback function to notify the events sources.
/illumos-gate/usr/src/uts/common/io/usb/clients/ugen/
H A Dugen.c275 /* register for hotplug events */
434 ugen_skel_poll(dev_t dev, short events, argument
444 return (usb_ugen_poll(ugen_skelp->ugen_skel_hdl, dev, events,
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/
H A Dsol_uverbs_event.c147 * by sol_ucma, do not return events. Either return EAGAIN (if
171 "event_file_read - no events, no block");
229 * events - The events that may occur.
234 * reventssp - A pointer updated to return a bitmask of events specified.
242 * channel in asynchronous type environment. If events may be read
248 sol_uverbs_event_file_poll(uverbs_ufile_uobj_t *ufile, short events, argument
255 ufile, events);
274 if ((events & (POLLIN | POLLRDNORM)) &&
286 if ((revent == 0 && !anyyet) || (events
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Drandom.c316 * . Only POLLIN, POLLOUT, and POLLRDNORM events are supported.
323 rnd_chpoll(dev_t dev, short events, int anyyet, short *reventsp, argument
328 *reventsp = events & (POLLOUT | POLLIN | POLLRDNORM);
332 * user polls for 0 events.
334 if ((*reventsp == 0 && !anyyet) || (events & POLLET))
339 kcf_rnd_chpoll(events, anyyet, reventsp, phpp);

Completed in 187 milliseconds

123456