Skip to main content

validate_region

Function validate_region 

Source
pub fn validate_region(region: &MemoryRegion) -> RvmResult<()>
Expand description

Validate that a memory region descriptor is well-formed.

ยงErrors

Returns RvmError::AlignmentError if addresses are not page-aligned. Returns RvmError::ResourceLimitExceeded if the page count is zero. Returns RvmError::Unsupported if no permission bits are set.