pub unsafe fn try_commit_range(
base: *mut u8,
start: usize,
end: usize,
) -> Result<(), VmemError>Available on crate feature
lazy-commit only.Expand description
Fallible commit_range: Ok(()) on success (or was a well-formed no-op),
Err(VmemError::invalid_argument()) if the offsets violated the contract
(misaligned, or start > end), Err(VmemError) carrying the OS cause on
genuine commit failure.
ยงSafety
Same as commit_range.