Searched refs:events (Results 1 - 25 of 402) sorted by relevance

1234567891011>>

/freebsd-head/contrib/wpa/src/drivers/
H A Dndis_events.c2 * ndis_events - Receive NdisMIndicateStatus() events using WMI
115 static int ndis_events_get_adapter(struct ndis_events_data *events,
119 static int ndis_events_constructor(struct ndis_events_data *events) argument
121 events->ref = 1;
123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) {
128 events->event_avail = CreateEvent(NULL, TRUE, FALSE, NULL);
129 if (events->event_avail == NULL) {
132 CloseHandle(events->read_pipe);
133 CloseHandle(events
141 ndis_events_destructor(struct ndis_events_data *events) argument
171 struct ndis_events_data *events = (struct ndis_events_data *) this; local
178 struct ndis_events_data *events = (struct ndis_events_data *) this; local
192 ndis_events_send_event(struct ndis_events_data *events, enum event_types type, char *data, size_t data_len) argument
226 ndis_events_media_connect(struct ndis_events_data *events) argument
233 ndis_events_media_disconnect(struct ndis_events_data *events) argument
240 ndis_events_media_specific(struct ndis_events_data *events, IWbemClassObject *pObj) argument
288 ndis_events_adapter_arrival(struct ndis_events_data *events) argument
295 ndis_events_adapter_removal(struct ndis_events_data *events) argument
306 struct ndis_events_data *events = (struct ndis_events_data *) this; local
438 ndis_events_deinit(struct ndis_events_data *events) argument
450 ndis_events_use_desc(struct ndis_events_data *events, const char *desc) argument
483 ndis_events_get_adapter(struct ndis_events_data *events, const char *ifname, const char *desc) argument
707 struct ndis_events_data *events; local
[all...]
H A Ddriver_ndis.h17 void ndis_events_deinit(struct ndis_events_data *events);
55 struct ndis_events_data *events; member in struct:wpa_driver_ndis_data
/freebsd-head/contrib/libevent/
H A Depoll.c87 struct epoll_event *events; member in struct:epollop
113 short old, short events, void *p);
115 short old, short events, void *p);
169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event));
170 if (epollop->events == NULL) {
199 epev.events = EPOLLIN;
249 #define PRINT_CHANGES(op, events, ch, status) \
251 "Old events were %d; " \
256 events, \
272 int op, events local
375 epoll_nochangelist_add(struct event_base *base, evutil_socket_t fd, short old, short events, void *p) argument
396 epoll_nochangelist_del(struct event_base *base, evutil_socket_t fd, short old, short events, void *p) argument
417 struct epoll_event *events = epollop->events; local
[all...]
H A Ddevpoll.c57 struct pollfd *events; member in struct:devpollop
65 static int devpoll_add(struct event_base *, int fd, short old, short events, void *);
66 static int devpoll_del(struct event_base *, int fd, short old, short events, void *);
100 devpoll_queue(struct devpollop *devpollop, int fd, int events) { argument
114 pfd->events = events;
146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd));
147 if (devpollop->events == NULL) {
156 mm_free(devpollop->events);
171 struct pollfd *events local
228 devpoll_add(struct event_base *base, int fd, short old, short events, void *p) argument
254 devpoll_del(struct event_base *base, int fd, short old, short events, void *p) argument
[all...]
H A Depoll_sub.c59 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) argument
62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0));
64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout));
H A Dchangelist-internal.h46 unintended consequences: in kqueue, this makes pending events get
54 /** The fd or signal whose events are to be changed */
56 /* The events that were enabled on the fd before any of these changes
76 /* Set for persistent events. Currently not used. */
78 /* Set for adding edge-triggered events. */
96 int event_changelist_add_(struct event_base *base, evutil_socket_t fd, short old, short events,
99 int event_changelist_del_(struct event_base *base, evutil_socket_t fd, short old, short events,
H A Dpoll.c70 static int poll_add(struct event_base *, int, short old, short events, void *idx);
71 static int poll_del(struct event_base *, int, short old, short events, void *idx);
217 poll_add(struct event_base *base, int fd, short old, short events, void *idx_) argument
224 EVUTIL_ASSERT((events & EV_SIGNAL) == 0);
225 if (!(events & (EV_READ|EV_WRITE)))
258 pfd->events = 0;
264 if (events & EV_WRITE)
265 pfd->events |= POLLOUT;
266 if (events & EV_READ)
267 pfd->events |
278 poll_del(struct event_base *base, int fd, short old, short events, void *idx_) argument
[all...]
H A Dkqueue.c76 struct kevent *events; member in struct:kqop
139 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent));
140 if (kqueueop->events == NULL)
151 * stick an error in events[0]. If kqueue is broken, then
155 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
156 (int)kqueueop->events[0].ident != -1 ||
157 !(kqueueop->events[0].flags & EV_ERROR)) {
241 newresult = mm_realloc(kqop->events,
245 kqop->events = newresult;
257 struct kevent *events local
441 kq_sig_add(struct event_base *base, int nsignal, short old, short events, void *p) argument
474 kq_sig_del(struct event_base *base, int nsignal, short old, short events, void *p) argument
[all...]
/freebsd-head/contrib/ntp/sntp/libevent/
H A Depoll.c87 struct epoll_event *events; member in struct:epollop
113 short old, short events, void *p);
115 short old, short events, void *p);
169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event));
170 if (epollop->events == NULL) {
199 epev.events = EPOLLIN;
255 int op, events = 0; local
260 events = epoll_op_table[idx].events;
262 if (!events) {
376 epoll_nochangelist_add(struct event_base *base, evutil_socket_t fd, short old, short events, void *p) argument
397 epoll_nochangelist_del(struct event_base *base, evutil_socket_t fd, short old, short events, void *p) argument
418 struct epoll_event *events = epollop->events; local
[all...]
H A Ddevpoll.c57 struct pollfd *events; member in struct:devpollop
65 static int devpoll_add(struct event_base *, int fd, short old, short events, void *);
66 static int devpoll_del(struct event_base *, int fd, short old, short events, void *);
100 devpoll_queue(struct devpollop *devpollop, int fd, int events) { argument
114 pfd->events = events;
146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd));
147 if (devpollop->events == NULL) {
156 mm_free(devpollop->events);
171 struct pollfd *events local
228 devpoll_add(struct event_base *base, int fd, short old, short events, void *p) argument
254 devpoll_del(struct event_base *base, int fd, short old, short events, void *p) argument
[all...]
H A Depoll_sub.c59 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) argument
62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0));
64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout));
H A Dchangelist-internal.h46 unintended consequences: in kqueue, this makes pending events get
54 /** The fd or signal whose events are to be changed */
56 /* The events that were enabled on the fd before any of these changes
76 /* Set for persistent events. Currently not used. */
78 /* Set for adding edge-triggered events. */
96 int event_changelist_add_(struct event_base *base, evutil_socket_t fd, short old, short events,
99 int event_changelist_del_(struct event_base *base, evutil_socket_t fd, short old, short events,
H A Dpoll.c70 static int poll_add(struct event_base *, int, short old, short events, void *idx);
71 static int poll_del(struct event_base *, int, short old, short events, void *idx);
217 poll_add(struct event_base *base, int fd, short old, short events, void *idx_) argument
224 EVUTIL_ASSERT((events & EV_SIGNAL) == 0);
225 if (!(events & (EV_READ|EV_WRITE)))
258 pfd->events = 0;
264 if (events & EV_WRITE)
265 pfd->events |= POLLOUT;
266 if (events & EV_READ)
267 pfd->events |
278 poll_del(struct event_base *base, int fd, short old, short events, void *idx_) argument
[all...]
H A Dkqueue.c76 struct kevent *events; member in struct:kqop
139 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent));
140 if (kqueueop->events == NULL)
151 * stick an error in events[0]. If kqueue is broken, then
155 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
156 (int)kqueueop->events[0].ident != -1 ||
157 kqueueop->events[0].flags != EV_ERROR) {
241 newresult = mm_realloc(kqop->events,
245 kqop->events = newresult;
257 struct kevent *events local
440 kq_sig_add(struct event_base *base, int nsignal, short old, short events, void *p) argument
473 kq_sig_del(struct event_base *base, int nsignal, short old, short events, void *p) argument
[all...]
/freebsd-head/contrib/ntp/lib/isc/
H A Dondestroy.c38 ISC_LIST_INIT(ondest->events);
60 ISC_LIST_APPEND(ondest->events, theevent, ev_link);
72 eventp = ISC_LIST_HEAD(ondest->events);
74 ISC_LIST_UNLINK(ondest->events, eventp, ev_link);
81 eventp = ISC_LIST_HEAD(ondest->events);
/freebsd-head/contrib/pf/libevent/
H A Dkqueue.c67 struct kevent *events; member in struct:kqop
119 kqueueop->events = malloc(NEVENT * sizeof(struct kevent));
120 if (kqueueop->events == NULL) {
133 * stick an error in events[0]. If kqueue is broken, then
137 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
138 kqueueop->events[0].ident != -1 ||
139 kqueueop->events[0].flags != EV_ERROR) {
142 free(kqueueop->events);
176 newresult = realloc(kqop->events,
187 kqop->events
213 struct kevent *events = kqop->events; local
[all...]
/freebsd-head/contrib/capsicum-test/
H A Dsctp.cc132 struct sctp_event_subscribe events; local
133 memset(&events, 0, sizeof(events));
134 events.sctp_association_event = 1;
135 events.sctp_data_io_event = 1;
136 EXPECT_NOTCAPABLE(setsockopt(cap_sock_rw, IPPROTO_SCTP, SCTP_EVENTS, &events, sizeof(events)));
137 len = sizeof(events);
138 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, IPPROTO_SCTP, SCTP_EVENTS, &events, &len));
139 memset(&events,
[all...]
/freebsd-head/contrib/ntp/lib/isc/include/isc/
H A Dondestroy.h83 isc_eventlist_t events; member in struct:isc_ondestroy
/freebsd-head/contrib/ntp/sntp/libevent/test/
H A Dbench_cascade.c58 * events will fire subsequently until the last socket pair has been reached
64 static struct event *events; variable in typeref:struct:event
87 events = (struct event *)calloc(num_pipes, sizeof(struct event));
90 if (events == NULL || pipes == NULL) {
105 /* provide a default timeout for events */
111 event_set(&events[i], cp[0], EV_READ, read_cb,
113 event_add(&events[i], &tv_timeout);
128 event_del(&events[i]);
134 free(events);
/freebsd-head/contrib/libevent/test/
H A Dbench_cascade.c58 * events will fire subsequently until the last socket pair has been reached
64 static struct event *events; variable in typeref:struct:event
87 events = (struct event *)calloc(num_pipes, sizeof(struct event));
90 if (events == NULL || pipes == NULL) {
105 /* provide a default timeout for events */
111 event_set(&events[i], cp[0], EV_READ, read_cb,
113 event_add(&events[i], &tv_timeout);
128 event_del(&events[i]);
134 free(events);
/freebsd-head/contrib/gdb/gdb/
H A Dgdb-events.sh28 # The gdb-events.h/gdb-events.c files this script generates are commited
31 # Any UI module that is installing events is changed so that the
32 # events are installed using the ``set_gdb_events()'' and
35 # stack that allows several ui blocks to install their own events.
37 # Each of the variable events (as currently generated) is converted
139 /* This file was created with the aid of \`\`gdb-events.sh''.
141 The bourn shell script \`\`gdb-events.sh'' creates the files
142 \`\`new-gdb-events.c'' and \`\`new-gdb-events
[all...]
/freebsd-head/usr.sbin/acpi/
H A DMakefile.inc19 ${ACPICA_DIR}/components/events \
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbsd-poll.h36 short events; member in struct:pollfd
/freebsd-head/sys/cddl/contrib/opensolaris/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 */
/freebsd-head/contrib/ofed/opensm/complib/
H A Dcl_threadpool.c63 while (!p_thread_pool->events)
66 p_thread_pool->events--;
93 p_thread_pool->events = 0;
138 p_thread_pool->events = 0;
146 p_thread_pool->events++;

Completed in 111 milliseconds

1234567891011>>