Home
last modified time | relevance | path

Searched refs:EventFd (Results 1 – 24 of 24) sorted by relevance

/external/crosvm/sys_util/src/
Deventfd.rs25 pub struct EventFd { struct
38 impl EventFd { implementation
40 pub fn new() -> Result<EventFd> { in new()
49 Ok(EventFd { in new()
136 pub fn try_clone(&self) -> Result<EventFd> { in try_clone() argument
139 .map(|event_handle| EventFd { event_handle }) in try_clone()
143 impl AsRawFd for EventFd { implementation
149 impl AsRawDescriptor for EventFd { implementation
155 impl FromRawFd for EventFd { implementation
157 EventFd { in from_raw_fd()
[all …]
Dclock.rs11 use crate::EventFd;
49 deadlines: Vec<(u64, EventFd)>,
95 pub fn add_event_fd(&mut self, deadline_ns: u64, fd: EventFd) { in add_event_fd() argument
Dfile_flags.rs39 use crate::{pipe, EventFd};
50 let evt = EventFd::new().unwrap(); in eventfd()
Dfork.rs98 use crate::{getpid, EventFd};
113 let evt_fd = EventFd::new().expect("failed to create EventFd"); in pid_diff()
Dtimerfd.rs18 use crate::{errno_result, EventFd, FakeClock, Result};
160 fd: EventFd,
171 fd: EventFd::new().unwrap(), in new()
Dpoll.rs695 use crate::EventFd;
702 let evt1 = EventFd::new().unwrap(); in poll_context()
703 let evt2 = EventFd::new().unwrap(); in poll_context()
734 let evt = EventFd::new().unwrap(); in poll_context_overflow()
Dsock_ctrl_msg.rs430 use crate::EventFd;
509 let evt = EventFd::new().expect("failed to create eventfd"); in send_recv_only_fd()
537 let evt = EventFd::new().expect("failed to create eventfd"); in send_recv_with_fd()
/external/perfetto/src/base/
Devent_fd.cc41 EventFd::~EventFd() = default;
44 EventFd::EventFd() { in EventFd() function in perfetto::base::EventFd
50 void EventFd::Notify() { in Notify()
55 void EventFd::Clear() { in Clear()
63 EventFd::EventFd() { in EventFd() function in perfetto::base::EventFd
68 void EventFd::Notify() { in Notify()
75 void EventFd::Clear() { in Clear()
84 EventFd::EventFd() { in EventFd() function in perfetto::base::EventFd
92 void EventFd::Notify() { in Notify()
99 void EventFd::Clear() { in Clear()
Dtask_runner_unittest.cc110 EventFd evt; in TEST_F()
119 EventFd evt; in TEST_F()
134 EventFd evt; in TEST_F()
151 EventFd evt; in TEST_F()
152 EventFd evt2; in TEST_F()
165 EventFd evt; in TEST_F()
166 EventFd evt2; in TEST_F()
185 EventFd evt; in TEST_F()
186 EventFd evt2; in TEST_F()
206 EventFd evt; in TEST_F()
[all …]
/external/perfetto/include/perfetto/ext/base/
Devent_fd.h30 class EventFd {
32 EventFd();
33 ~EventFd();
34 EventFd(EventFd&&) noexcept = default;
35 EventFd& operator=(EventFd&&) = default;
Dunix_task_runner.h95 EventFd event_;
Dsubprocess.h240 base::EventFd stdouterr_done_event;
/external/crosvm/cros_async/src/
Devent.rs5 use sys_util::EventFd;
11 io_source: Box<dyn IoSourceExt<EventFd>>,
15 pub fn new(event: EventFd, ex: &Executor) -> AsyncResult<EventAsync> { in new() argument
21 pub(crate) fn new_poll(event: EventFd, ex: &crate::FdExecutor) -> AsyncResult<EventAsync> { in new_poll() argument
26 pub(crate) fn new_uring(event: EventFd, ex: &crate::URingExecutor) -> AsyncResult<EventAsync> { in new_uring() argument
37 impl IntoAsync for EventFd {} implementation
47 async fn go(event: EventFd, ex: &Executor) -> u64 { in next_val_reads_value() argument
52 let eventfd = EventFd::new().unwrap(); in next_val_reads_value()
65 let eventfd = EventFd::new().unwrap(); in next_val_reads_value_poll_and_ring()
73 let eventfd = EventFd::new().unwrap(); in next_val_reads_value_poll_and_ring()
During_source.rs333 use sys_util::EventFd; in event()
335 async fn write_event(ev: EventFd, wait: EventFd, ex: &URingExecutor) { in event() argument
345 async fn read_events(ev: EventFd, signal: EventFd, ex: &URingExecutor) { in event() argument
355 let event = EventFd::new().unwrap(); in event()
356 let signal_wait = EventFd::new().unwrap(); in event()
Dfd_executor.rs26 use sys_util::{add_fd_flags, warn, EpollContext, EpollEvents, EventFd, WatchingEvents};
187 async fn notify_task(notify: EventFd, raw: Weak<RawExecutor>) { in notify_task() argument
239 notify: EventFd,
243 fn new(notify: EventFd) -> Result<Self> { in new()
453 let notify = EventFd::new().map_err(Error::CreateEventFd)?; in new()
Dio_ext.rs361 use sys_util::EventFd; in read_eventfds()
367 let eventfd = EventFd::new().unwrap(); in read_eventfds()
374 let eventfd = EventFd::new().unwrap(); in read_eventfds()
/external/rust/crates/vmm_vhost/src/
Dbackend.rs16 use sys_util::EventFd;
144 fn set_vring_call(&self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_call()
152 fn set_vring_kick(&self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_kick()
159 fn set_vring_err(&self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_err()
230 fn set_vring_call(&mut self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_call()
238 fn set_vring_kick(&mut self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_kick()
245 fn set_vring_err(&mut self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_err()
295 fn set_vring_call(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_call()
299 fn set_vring_kick(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_kick()
303 fn set_vring_err(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_err()
[all …]
/external/crosvm/base/src/
Devent.rs14 use sys_util::EventFd;
21 pub struct Event(pub EventFd);
24 EventFd::new().map(Event) in new()
52 Event(EventFd::from_raw_fd(descriptor)) in from_raw_descriptor()
/external/rust/crates/vmm_vhost/src/vhost_kern/
Dmod.rs17 use sys_util::EventFd;
240 fn set_vring_call(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_call()
257 fn set_vring_kick(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_kick()
273 fn set_vring_err(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_err()
Dvsock.rs81 use sys_util::EventFd;
160 let eventfd = EventFd::new().unwrap(); in test_vsock_ioctls()
/external/perfetto/src/profiling/memory/
Dmain.cc58 base::EventFd* g_dump_evt = nullptr;
95 g_dump_evt = new base::EventFd(); in StartCentralHeapprofd()
/external/perfetto/src/perfetto_cmd/
Dperfetto_cmd.h97 base::EventFd ctrl_c_evt_;
/external/rust/crates/vmm_vhost/src/vhost_user/
Dmaster.rs12 use sys_util::EventFd;
281 fn set_vring_call(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_call()
294 fn set_vring_kick(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_kick()
306 fn set_vring_err(&self, queue_index: usize, fd: &EventFd) -> Result<()> { in set_vring_err()
Dmod.rs366 let eventfd = sys_util::EventFd::new().unwrap(); in test_master_slave_process()