Skip to main content

validate_chain_layout

Function validate_chain_layout 

Source
pub fn validate_chain_layout(
    regions: &[ChainRegion],
    max_descriptors: u16,
) -> Result<ChainLayout, ChainLayoutError>
Expand description

Validate transport-neutral descriptor metadata before frame bytes are decoded.

This operation is nonblocking, performs no allocation, and visits each region once. Guest addresses, descriptor indices, and mapping details remain owned by the transport adapter.