xengnt: implement memory mapping support

This commit is contained in:
Alex Zenla
2024-03-25 07:24:25 +00:00
parent 0a5948aa50
commit 162579f100
3 changed files with 88 additions and 15 deletions

View File

@ -8,6 +8,8 @@ pub enum Error {
Io(#[from] io::Error),
#[error("failed to read structure")]
StructureReadFailed,
#[error("mmap failed")]
MmapFailed,
}
pub type Result<T> = std::result::Result<T, Error>;