Skip to main content

PageInRange

Type Alias PageInRange 

Source
pub type PageInRange<T> = PagerRange<T, PageInRequest>;
Expand description

The requested range from a ZX_PAGER_VMO_READ packet. This object must not be dropped without calling either supply_pages or report_failure.

Aliased Type§

pub struct PageInRange<T> { /* private fields */ }

Implementations§

Source§

impl<T: PagerBacked> PageInRange<T>

Source

pub fn new( range: Range<u64>, file: Arc<T>, epoch_guard: EpochGuard<'static>, ) -> Self

Constructs a new PageInRange<T>. range must be page aligned.

Source

pub fn supply_pages(self, transfer_vmo: &Vmo, transfer_offset: u64)

Supplies pages to the kernel for this range. See zx_pager_supply_pages for more information.