Expand description
Collection of modules that provides helpers and utilities used by multiple rust-vmm components.
Modules§
- aio
Linux or Android - Safe wrapper over
Linux AIO. - align
- Miscellaneous macros related to align addresses
- epoll
Linux or Android - Safe wrappers over the
epollAPI. - errno
- Structures, helpers, and type definitions for working with
errno. - event
Unix - This module provides a platform-independent interface for event notification, enabling support across multiple operating systems.
- eventfd
Linux or Android - Structure and wrapper functions for working with
eventfd. - fallocate
Linux or Android - Enum and function for dealing with an allocated disk space
by
fallocate. - fam
- Trait and wrapper for working with C defined FAM structures.
- file_
traits Unix - Traits for handling file synchronization and length.
- ioctl
Linux or Android - Macros and functions for working with
ioctl. - metric
- 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.
- poll
Linux or Android - Traits and structures for working with
epoll - rand
- Miscellaneous functions related to getting (pseudo) random numbers and strings.
- seek_
hole Linux or Android - Traits and implementations over lseek64.
- signal
Linux or Android - Enums, traits and functions for working with
signal. - sock_
ctrl_ msg Unix - Wrapper for sending and receiving messages with file descriptors on sockets that accept control messages (e.g. Unix domain sockets).
- syscall
- Wrapper for interpreting syscall exit codes.
- tempdir
Unix - Structure for handling temporary directories.
- tempfile
- Struct for handling temporary files as well as any cleanup required.
- terminal
Unix - Trait for working with
termios. - timerfd
Linux or Android - Structure and functions for working with
timerfd. - write_
zeroes Linux or Android - Traits for replacing a range with a hole and writing zeroes in a file.
Macros§
- align_
downwards - Aligns the given address downwards to the nearest boundary specified by
alignment. - align_
upwards - Aligns the given address upwards to the nearest boundary specified by
alignment. - generate_
fam_ struct_ impl - Generate
FamStructimplementation for structs with flexible array member. - ioctl_
io_ nr Linux or Android - Declare an ioctl that transfers no data.
- ioctl_
ioc_ nr Linux or Android - Declare a function that returns an ioctl number.
- ioctl_
ior_ nr Linux or Android - Declare an ioctl that reads data.
- ioctl_
iow_ nr Linux or Android - Declare an ioctl that writes data.
- ioctl_
iowr_ nr Linux or Android - Declare an ioctl that reads and writes data.