mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 20:56:12 +00:00
In KVM, eventfd's are essential for sending and receiving signals to the VM. This CL adds a safe wrapper around their usage. TEST=cargo test BUG=None Change-Id: I04cd9036db156bfa8b9bd49281347a2460fbff2c Reviewed-on: https://chromium-review.googlesource.com/496988 Commit-Ready: Dylan Reid <dgreid@chromium.org> Tested-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
16 lines
380 B
Rust
16 lines
380 B
Rust
// Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
//! Small system utility modules for usage by other modules.
|
|
|
|
extern crate libc;
|
|
|
|
mod mmap;
|
|
mod eventfd;
|
|
mod errno;
|
|
|
|
pub use mmap::*;
|
|
pub use eventfd::*;
|
|
pub use errno::{Error, Result};
|
|
use errno::errno_result;
|