crosvm/sys_util/src
Jingkui Wang db36427cd8 sys_util: refactor pollcontext to decouple events from epoll fd.
PollContext is not thread safe while the underlying epoll is thread
safe. This is because PollContext owns EpollEvents, to offer an easy to
use interface. User of this package might want a thread safe version of Epoll.

This CL decouples events from epoll fd, thus providing thread safe epoll.

BUG=None
TEST=cargo build and run

Change-Id: I786b1d186664fdb4a95ce4d3062b044d27b74d40
Reviewed-on: https://chromium-review.googlesource.com/1320429
Commit-Ready: Jingkui Wang <jkwang@google.com>
Tested-by: Jingkui Wang <jkwang@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
2019-01-19 00:14:07 -08:00
..
errno.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
eventfd.rs sys_util: add debug to eventfd 2018-12-25 17:55:09 -08:00
file_flags.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
file_traits.rs sys_util: add set_len() trait 2019-01-05 20:08:26 -08:00
fork.rs toolchain: Update to Rust 1.31.0 2018-12-13 19:28:04 -08:00
guest_address.rs crosvm: change GuestAddress to always be a u64 2018-02-01 18:08:55 -08:00
guest_memory.rs memory: Add methods to return error on short writes and reads 2019-01-13 03:23:13 -08:00
handle_eintr.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
ioctl.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
lib.rs memory: Add methods to return error on short writes and reads 2019-01-13 03:23:13 -08:00
mmap.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
net.rs sys_util: Add net module includes UnixSeqpacket 2019-01-10 13:58:41 -08:00
passwd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
poll.rs sys_util: refactor pollcontext to decouple events from epoll fd. 2019-01-19 00:14:07 -08:00
priority.rs sys_util: Add ability to set real time thread priority 2018-12-09 00:48:21 -08:00
raw_fd.rs Add "Fd" wrapper for RawFd type. 2019-01-05 20:08:32 -08:00
seek_hole.rs sys_util: add SeekHole trait 2018-10-18 19:01:06 -07:00
shm.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
signal.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
signalfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
sock_ctrl_msg.rs toolchain: Update to Rust 1.31.0 2018-12-13 19:28:04 -08:00
struct_util.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
syslog.rs sync: Mutex type with methods that panic instead of return error 2018-12-05 01:13:41 -08:00
tempdir.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
terminal.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
timerfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
write_zeroes.rs devices: virtio: block: ignore Discard failures 2018-10-19 12:19:41 -07:00