/external/libevent/ |
D | kqueue.c | 55 #define PTR_TO_UDATA(x) ((typeof(((struct kevent *)0)->udata))(x)) 56 #define INT_TO_UDATA(x) ((typeof(((struct kevent *)0)->udata))(intptr_t)(x)) 78 struct kevent *changes; 81 struct kevent *events; 141 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init() 144 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init() 159 if (kevent(kq, in kq_init() 180 kq_setup_kevent(struct kevent *out, evutil_socket_t fd, int filter, short change) in kq_setup_kevent() 182 memset(out, 0, sizeof(struct kevent)); in kq_setup_kevent() 213 struct kevent *out_ch; in kq_build_changes_list() [all …]
|
/external/rust/crates/mio/src/sys/unix/selector/ |
D | kqueue.rs | 54 macro_rules! kevent { macro 56 libc::kevent { 115 syscall!(kevent( in select() 133 let mut changes: [MaybeUninit<libc::kevent>; 2] = in register() 138 let kevent = kevent!(fd, libc::EVFILT_WRITE, flags, token.0); in register() localVariable 139 changes[n_changes] = MaybeUninit::new(kevent); in register() 144 let kevent = kevent!(fd, libc::EVFILT_READ, flags, token.0); in register() localVariable 145 changes[n_changes] = MaybeUninit::new(kevent); in register() 182 let mut changes: [libc::kevent; 2] = [ in reregister() 183 kevent!(fd, libc::EVFILT_WRITE, write_flags, token.0), in reregister() [all …]
|
/external/rust/crates/nix/src/sys/ |
D | event.rs | 17 kevent: libc::kevent, field 221 KEvent { kevent: libc::kevent { in new() 232 self.kevent.ident in ident() 236 unsafe { mem::transmute(self.kevent.filter as type_of_event_filter) } in filter() 240 EventFlag::from_bits(self.kevent.flags).unwrap() in flags() 244 FilterFlag::from_bits(self.kevent.fflags).unwrap() in fflags() 248 self.kevent.data as intptr_t in data() 252 self.kevent.udata as intptr_t in udata() 256 pub fn kevent(kq: RawFd, in kevent() function 285 libc::kevent( in kevent_ts() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_kqueue.py | 26 ev = select.kevent(fd) 27 other = select.kevent(1000) 46 ev = select.kevent(fd, select.KQ_FILTER_WRITE) 56 ev = select.kevent(fd, select.KQ_FILTER_WRITE, select.KQ_EV_ONESHOT) 66 ev = select.kevent(1, 2, 3, 4, 5, 6) 77 ev = select.kevent(bignum, 1, 2, 3, bignum - 1, bignum) 89 ev = select.kevent(0, 1, bignum) 101 ev = select.kevent(0, 1, 2, bignum) 130 ev = select.kevent(server.fileno(), 134 ev = select.kevent(server.fileno(), [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_kqueue.py | 29 ev = select.kevent(fd) 30 other = select.kevent(1000) 46 ev = select.kevent(fd, select.KQ_FILTER_WRITE) 56 ev = select.kevent(fd, select.KQ_FILTER_WRITE, select.KQ_EV_ONESHOT) 66 ev = select.kevent(1, 2, 3, 4, 5, 6) 77 ev = select.kevent(bignum, 1, 2, 3, bignum - 1, bignum) 89 ev = select.kevent(0, 1, bignum) 101 ev = select.kevent(0, 1, 2, bignum) 128 ev = select.kevent(server.fileno(), 132 ev = select.kevent(server.fileno(), [all …]
|
/external/libchrome/base/files/ |
D | file_path_watcher_kqueue.h | 51 typedef std::vector<struct kevent> EventVector; 57 bool AreKeventValuesValid(struct kevent* kevents, int count); 91 static void ReleaseEvent(struct kevent& event); 103 static bool IsKeventFileDescriptorOpen(const struct kevent& event) { in IsKeventFileDescriptorOpen() 107 static EventData* EventDataForKevent(const struct kevent& event) { in EventDataForKevent()
|
D | file_path_watcher_kqueue.cc | 33 void FilePathWatcherKQueue::ReleaseEvent(struct kevent& event) { in ReleaseEvent() 72 struct kevent event; in EventsForPath() 99 bool FilePathWatcherKQueue::AreKeventValuesValid(struct kevent* kevents, in AreKeventValuesValid() 212 int count = HANDLE_EINTR(kevent(kqueue_, &events_[0], valid, &updates[0], in UpdateWatches() 259 int count = HANDLE_EINTR(kevent(kqueue_, &events_[0], last_entry, in Watch() 309 int count = HANDLE_EINTR(kevent(kqueue_, NULL, 0, &updates[0], updates.size(), in OnKQueueReadable()
|
/external/libcups/scheduler/ |
D | select.c | 200 static struct kevent *cupsd_kqueue_events = NULL; 291 struct kevent event; /* Event data */ 305 if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) 320 if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) 405 struct kevent *event; /* Current event */ in cupsdDoSelect() 416 nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs, in cupsdDoSelect() 420 nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs, NULL); in cupsdDoSelect() 692 struct kevent event; /* Event data */ in cupsdRemoveSelect() 731 if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) in cupsdRemoveSelect() 743 if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) in cupsdRemoveSelect() [all …]
|
/external/libevent/cmake/ |
D | CheckWorkingKqueue.cmake | 18 struct kevent ev; 37 n = kevent(kq, &ev, 1, NULL, 0, NULL); 45 n = kevent(kq, NULL, 0, &ev, 1, &ts);
|
/external/llvm-project/lldb/source/Host/common/ |
D | MainLoop.cpp | 84 std::vector<struct kevent> in_events; 85 struct kevent out_events[4]; 110 num_events = kevent(loop.m_kqueue, in_events.data(), in_events.size(), in Poll() 328 struct kevent ev; 330 ret = kevent(m_kqueue, &ev, 1, nullptr, 0, nullptr); 371 struct kevent ev; 373 ret = kevent(m_kqueue, &ev, 1, nullptr, 0, nullptr);
|
/external/libchrome/base/process/ |
D | process_posix.cc | 105 struct kevent change = {0}; in WaitForSingleNonChildProcess() 107 int result = HANDLE_EINTR(kevent(kq.get(), &change, 1, NULL, 0, NULL)); in WaitForSingleNonChildProcess() 129 struct kevent event = {0}; in WaitForSingleNonChildProcess() 141 result = kevent(kq.get(), NULL, 0, &event, 1, remaining_timespec_ptr); in WaitForSingleNonChildProcess()
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/indic/ |
D | IndicInputMethodImpl.java | 183 void handleKeyTyped(KeyEvent kevent) { in handleKeyTyped() argument 184 char keyChar = kevent.getKeyChar(); in handleKeyTyped() 201 kevent.consume(); in handleKeyTyped() 284 kevent.consume();// prevent client from getting this event. in handleKeyTyped()
|
/external/python/cpython2/Doc/library/ |
D | select.rst | 53 .. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0) 56 :ref:`kevent-objects` below for the methods supported by kevent objects. 296 Low level interface to kevent 298 - changelist must be an iterable of kevent object or ``None`` 310 .. attribute:: kevent.ident 314 be an int or an object with a fileno() function. kevent stores the integer 317 .. attribute:: kevent.filter 346 .. attribute:: kevent.flags 375 .. attribute:: kevent.fflags 443 .. attribute:: kevent.data [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | eloop.c | 99 struct kevent *kqueue_events; 245 struct kevent ke; in eloop_sock_queue() 248 if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) == -1) { in eloop_sock_queue() 267 struct kevent *temp_events; in eloop_sock_table_add_sock() 389 struct kevent ke; in eloop_sock_table_remove_sock() 423 if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) < 0) { in eloop_sock_table_remove_sock() 638 static void eloop_sock_table_dispatch(struct kevent *events, int nfds) in eloop_sock_table_dispatch() 1159 res = kevent(eloop.kqueuefd, NULL, 0, in eloop_run() 1341 struct kevent ke1, ke2; in eloop_wait_for_read_sock() 1347 kevent(kfd, &ke1, 1, &ke2, 1, NULL); in eloop_wait_for_read_sock()
|
/external/python/cpython3/Doc/library/ |
D | select.rst | 111 .. function:: kevent(ident, filter=KQ_FILTER_READ, flags=KQ_EV_ADD, fflags=0, data=0, udata=0) 114 :ref:`kevent-objects` below for the methods supported by kevent objects. 488 Low level interface to kevent 490 - changelist must be an iterable of kevent objects or ``None`` 509 .. attribute:: kevent.ident 513 be an int or an object with a :meth:`~io.IOBase.fileno` method. kevent 516 .. attribute:: kevent.filter 545 .. attribute:: kevent.flags 574 .. attribute:: kevent.fflags 642 .. attribute:: kevent.data [all …]
|
/external/llvm-project/lldb/tools/debugserver/source/ |
D | RNBSocket.cpp | 142 std::vector<struct kevent> events; in Listen() 154 struct kevent event_list[4]; in Listen() 156 kevent(queue_id, events.data(), events.size(), event_list, 4, NULL); in Listen()
|
D | DNB.cpp | 142 struct kevent death_event; in kqueue_thread() 144 int n_events = kevent(kq_id, NULL, 0, &death_event, 1, NULL); in kqueue_thread() 227 struct kevent reg_event; in spawn_kqueue_thread() 232 int result = kevent(kq_id, ®_event, 1, NULL, 0, NULL); in spawn_kqueue_thread()
|
/external/python/cpython3/Lib/ |
D | selectors.py | 521 kev = select.kevent(key.fd, select.KQ_FILTER_READ, 525 kev = select.kevent(key.fd, select.KQ_FILTER_WRITE, 536 kev = select.kevent(key.fd, select.KQ_FILTER_READ, 545 kev = select.kevent(key.fd, select.KQ_FILTER_WRITE,
|
/external/toybox/lib/ |
D | portability.c | 209 struct kevent event; in xnotify_add() 213 if (kevent(not->kq, &event, 1, NULL, 0, NULL) == -1 || event.flags & EV_ERROR) in xnotify_add() 223 struct kevent event; in xnotify_wait() 227 if (kevent(not->kq, NULL, 0, &event, 1, NULL) != -1) { in xnotify_wait()
|
/external/python/cpython2/Modules/ |
D | selectmodule.c | 1206 struct kevent e; 1592 struct kevent *evl = NULL; in kqueue_queue_control() 1593 struct kevent *chl = NULL; in kqueue_queue_control() 1657 chl = PyMem_New(struct kevent, nchanges); in kqueue_queue_control() 1677 evl = PyMem_New(struct kevent, nevents); in kqueue_queue_control() 1685 gotevents = kevent(self->kqfd, chl, nchanges, in kqueue_queue_control()
|
/external/python/cpython3/Modules/ |
D | selectmodule.c | 1757 struct kevent e; 2127 struct kevent *evl = NULL; in select_kqueue_control_impl() 2128 struct kevent *chl = NULL; in select_kqueue_control_impl() 2179 chl = PyMem_New(struct kevent, nchanges); in select_kqueue_control_impl() 2199 evl = PyMem_New(struct kevent, maxevents); in select_kqueue_control_impl() 2212 gotevents = kevent(self->kqfd, chl, nchanges, in select_kqueue_control_impl()
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/ |
D | mod.rs | 11 pub struct kevent {
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/ |
D | mod.rs | 20 pub struct kevent {
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/ |
D | mod.rs | 20 pub struct kevent {
|
/external/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/ |
D | mod.rs | 211 pub struct kevent { 1492 pub fn kevent( in kevent() function 1494 changelist: *const ::kevent, in kevent() argument 1496 eventlist: *mut ::kevent, in kevent() argument
|