linux_kvm/
ioctl.rs

1//! ioctl constants for use with [`linux_io::File::ioctl`].
2//!
3//! This exposes the lower-level `ioctl` constants that the higher-level API
4//! is implemented in terms of, in case you need to do something the wrapping
5//! API cannot yet do, or in case you just prefer working this way.
6//!
7//! The constants are categorized the same way as they are in
8//! [the kernel API docs](https://docs.kernel.org/virt/kvm/api.html),
9//! split into:
10//! - [`system`] for system ioctls
11//! - [`vm`] for VM ioctls
12//! - [`vcpu`] for VCPU ioctls
13//! - [`device`] for device ioctls
14
15/// Constants for system ioctls.
16pub mod system;
17
18/// Constants for VM ioctls.
19pub mod vm;
20
21/// Constants for VCPU ioctls.
22pub mod vcpu;
23
24/// Constants for device ioctls.
25pub mod device;