Crate vmm_sys_util

Source
Expand description

Collection of modules that provides helpers and utilities used by multiple rust-vmm components.

Modules§

aioLinux or Android
Safe wrapper over Linux AIO.
align
Miscellaneous macros related to align addresses
epollLinux or Android
Safe wrappers over the epoll API.
errno
Structures, helpers, and type definitions for working with errno.
eventfdLinux or Android
Structure and wrapper functions for working with eventfd.
fallocateLinux 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_traitsUnix
Traits for handling file synchronization and length.
ioctlLinux 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.
pollLinux or Android
Traits and structures for working with epoll
rand
Miscellaneous functions related to getting (pseudo) random numbers and strings.
seek_holeLinux or Android
Traits and implementations over lseek64.
signalLinux or Android
Enums, traits and functions for working with signal.
sock_ctrl_msgLinux or Android
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.
tempdirUnix
Structure for handling temporary directories.
tempfile
Struct for handling temporary files as well as any cleanup required.
terminalUnix
Trait for working with termios.
timerfdLinux or Android
Structure and functions for working with timerfd.
write_zeroesLinux 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 FamStruct implementation for structs with flexible array member.
ioctl_io_nrLinux or Android
Declare an ioctl that transfers no data.
ioctl_ioc_nrLinux or Android
Declare a function that returns an ioctl number.
ioctl_ior_nrLinux or Android
Declare an ioctl that reads data.
ioctl_iow_nrLinux or Android
Declare an ioctl that writes data.
ioctl_iowr_nrLinux or Android
Declare an ioctl that reads and writes data.