Module mmap

Source
Expand description

The default implementation for the GuestMemory trait.

This implementation is mmap-ing the memory of the guest into the current process.

Structs§

GuestMemoryMmap
GuestMemory implementation that mmaps the guest’s memory in the current process.
GuestRegionMmap
GuestMemoryRegion implementation that mmaps the guest’s memory region in the current process.
Iter
An iterator over the elements of GuestMemoryMmap.
MmapRegion
Helper structure for working with mmaped memory regions in Unix.
MmapRegionBuilder
A factory struct to build MmapRegion objects.

Enums§

Error
Errors that can occur when creating a memory map.
MmapRegionError
Error conditions that may arise when creating a new MmapRegion object.

Traits§

NewBitmap
A Bitmap that can be created starting from an initial size.

Functions§

check_file_offset
Checks if a mapping of size bytes fits at the provided file_offset.