Crate vmm_sys_util
source ·Expand description
Collection of modules that provides helpers and utilities used by multiple rust-vmm components.
Modules
- aioLinux or AndroidSafe wrapper over
Linux AIO
. - epollLinux or AndroidSafe wrappers over the
epoll
API. - Structures, helpers, and type definitions for working with
errno
. - eventfdLinux or AndroidStructure and wrapper functions for working with
eventfd
. - fallocateLinux or AndroidEnum and function for dealing with an allocated disk space by
fallocate
. - Trait and wrapper for working with C defined FAM structures.
- file_traitsUnixTraits for handling file synchronization and length.
- ioctlLinux or AndroidMacros and functions for working with
ioctl
. - The purpose of this module is to provide abstractions for working with metrics in the context of rust-vmm components where there is a strong need to have metrics as an optional feature.
- pollLinux or AndroidTraits and structures for working with
epoll
- Miscellaneous functions related to getting (pseudo) random numbers and strings.
- seek_holeLinux or AndroidTraits and implementations over lseek64.
- signalLinux or AndroidEnums, traits and functions for working with
signal
. - sock_ctrl_msgLinux or AndroidWrapper for sending and receiving messages with file descriptors on sockets that accept control messages (e.g. Unix domain sockets).
- Wrapper for interpreting syscall exit codes.
- tempdirUnixStructure for handling temporary directories.
- Struct for handling temporary files as well as any cleanup required.
- terminalUnixTrait for working with
termios
. - timerfdLinux or AndroidStructure and functions for working with
timerfd
. - write_zeroesLinux or AndroidTraits for replacing a range with a hole and writing zeroes in a file.
Macros
- Generate
FamStruct
implementation for structs with flexible array member. - ioctl_io_nrLinux or AndroidDeclare an ioctl that transfers no data.
- ioctl_ioc_nrLinux or AndroidDeclare a function that returns an ioctl number.
- ioctl_ior_nrLinux or AndroidDeclare an ioctl that reads data.
- ioctl_iow_nrLinux or AndroidDeclare an ioctl that writes data.
- ioctl_iowr_nrLinux or AndroidDeclare an ioctl that reads and writes data.