Skip to main content

Op

Enum Op 

Source
pub enum Op {
Show 43 variants NewVmSpace, DropVmSpace { vs: VmSpaceId, }, OpenCursor { vs: VmSpaceId, va: Range<Vaddr>, }, OpenCursorMut { vs: VmSpaceId, va: Range<Vaddr>, }, DropCursor { c: CursorId, }, Query { c: CursorId, }, FindNext { c: CursorId, len: usize, }, Jump { c: CursorId, va: Vaddr, }, VirtAddr { c: CursorId, }, Map { c: CursorId, fid: FrameId, prop: PageProperty, }, Unmap { c: CursorId, len: usize, }, ProtectNext { c: CursorId, len: usize, }, NewReader { vs: VmSpaceId, vaddr: Vaddr, len: usize, }, NewWriter { vs: VmSpaceId, vaddr: Vaddr, len: usize, }, NewKernelReader { vaddr: Vaddr, len: usize, }, NewKernelWriter { vaddr: Vaddr, len: usize, }, DropReader { vio: VmIoId, }, DropWriter { vio: VmIoId, }, ReaderReadVal { source: VmIoId, }, ReaderCollect { source: VmIoId, }, ReaderLimit { vio: VmIoId, max: usize, }, ReaderSkip { vio: VmIoId, n: usize, }, ReaderQuery { vio: VmIoId, }, WriterWriteVal { writer: VmIoId, }, WriterFillZeros { vio: VmIoId, len: usize, }, WriterLimit { vio: VmIoId, max: usize, }, WriterSkip { vio: VmIoId, n: usize, }, WriterQuery { vio: VmIoId, }, Read { source: VmIoId, dest: VmIoId, }, Write { source: VmIoId, dest: VmIoId, }, FrameFromUnused { paddr: Paddr, }, FrameFromInUse { paddr: Paddr, }, FrameDrop { fid: FrameId, }, SegmentFromUnused { range: Range<Paddr>, }, SegmentDrop { sid: SegmentId, }, SegmentSplit { sid: SegmentId, offset: usize, }, SegmentNext { sid: SegmentId, }, SegmentClone { sid: SegmentId, }, SegmentSlice { sid: SegmentId, sub_range: Range<Paddr>, }, UniqueFromUnused { paddr: Paddr, }, UniqueDrop { uid: UniqueId, }, FromUnique { uid: UniqueId, }, TryFromShared { fid: FrameId, },
}
Expand description

Public exec API of ostd::mm::vm_space and ostd::mm::io, lifted to data.

Variants§

§

NewVmSpace

§

DropVmSpace

Fields

§

OpenCursor

Fields

§

OpenCursorMut

Fields

§

DropCursor

Fields

§

Query

Fields

§

FindNext

Fields

§len: usize
§

Jump

Fields

§

VirtAddr

Fields

§

Map

§

Unmap

Fields

§len: usize
§

ProtectNext

Fields

§len: usize
§

NewReader

Fields

§vaddr: Vaddr
§len: usize
§

NewWriter

Fields

§vaddr: Vaddr
§len: usize
§

NewKernelReader

Fields

§vaddr: Vaddr
§len: usize
§

NewKernelWriter

Fields

§vaddr: Vaddr
§len: usize
§

DropReader

Fields

§

DropWriter

Fields

§

ReaderReadVal

Fallible VmReader::read_val<T>.

Fields

§source: VmIoId
§

ReaderCollect

Fallible VmReader::collect. Same shape as ReaderReadVal.

Fields

§source: VmIoId
§

ReaderLimit

Fields

§max: usize
§

ReaderSkip

Fields

§

ReaderQuery

Fields

§

WriterWriteVal

Fallible VmWriter::write_val<T>. Same shape as ReaderReadVal.

Fields

§writer: VmIoId
§

WriterFillZeros

Fields

§len: usize
§

WriterLimit

Fields

§max: usize
§

WriterSkip

Fields

§

WriterQuery

Fields

§

Read

Infallible VmReader::read. Produces a consumed_w val_owner (registered as a fresh activated Writer entry).

Fields

§source: VmIoId
§dest: VmIoId
§

Write

Infallible VmWriter::write.

Fields

§source: VmIoId
§dest: VmIoId
§

FrameFromUnused

Frame::from_unused: try to allocate a fresh handle on a previously-unused slot.

Fields

§paddr: Paddr
§

FrameFromInUse

Frame::from_in_use: try to acquire a new handle on an in-use slot.

Fields

§paddr: Paddr
§

FrameDrop

Drop one outstanding Frame handle.

Fields

§

SegmentFromUnused

Segment::from_unused: allocate a fresh segment over a range of previously-unused slots.

Fields

§range: Range<Paddr>
§

SegmentDrop

Drop a Segment handle.

Fields

§

SegmentSplit

Segment::split: split a segment at a page-aligned byte offset from its start, producing two segments covering the disjoint halves.

Fields

§offset: usize
§

SegmentNext

Segment::next: pop the front frame off sid’s range, producing a fresh Frame<M> handle.

Fields

§

SegmentClone

Segment::clone: produce a second handle covering the same range as sid.

Fields

§

SegmentSlice

Segment::slice: produce a handle covering the sub-range sub_range.

Fields

§sub_range: Range<Paddr>
§

UniqueFromUnused

UniqueFrame::from_unused: allocate a fresh exclusive handle on a previously-unused slot.

Fields

§paddr: Paddr
§

UniqueDrop

Drop a UniqueFrame handle.

Fields

§

FromUnique

Frame::from_unique: convert the exclusive handle uid into a shared Frame.

Fields

§

TryFromShared

UniqueFrame::try_from_shared: try to convert the shared handle fid back into an exclusive one.

Fields

Implementations§

Source§

impl Op

Source

pub fn arrow_prop(self) -> PageProperty

Source

pub fn arrow_vio(self) -> VmIoId

Source

pub fn arrow_writer(self) -> VmIoId

Source

pub fn arrow_vs(self) -> VmSpaceId

Source

pub fn arrow_n(self) -> usize

Source

pub fn arrow_vaddr(self) -> Vaddr

Source

pub fn arrow_source(self) -> VmIoId

Source

pub fn arrow_fid(self) -> FrameId

Source

pub fn arrow_sub_range(self) -> Range<Paddr>

Source

pub fn arrow_len(self) -> usize

Source

pub fn arrow_sid(self) -> SegmentId

Source

pub fn arrow_offset(self) -> usize

Source

pub fn arrow_paddr(self) -> Paddr

Source

pub fn arrow_range(self) -> Range<Paddr>

Source

pub fn arrow_max(self) -> usize

Source

pub fn arrow_dest(self) -> VmIoId

Source

pub fn arrow_c(self) -> CursorId

Source

pub fn arrow_uid(self) -> UniqueId

Source

pub fn arrow_DropVmSpace_vs(self) -> VmSpaceId

Source

pub fn arrow_OpenCursor_vs(self) -> VmSpaceId

Source

pub fn arrow_OpenCursor_va(self) -> Range<Vaddr>

Source

pub fn arrow_OpenCursorMut_vs(self) -> VmSpaceId

Source

pub fn arrow_OpenCursorMut_va(self) -> Range<Vaddr>

Source

pub fn arrow_DropCursor_c(self) -> CursorId

Source

pub fn arrow_Query_c(self) -> CursorId

Source

pub fn arrow_FindNext_c(self) -> CursorId

Source

pub fn arrow_FindNext_len(self) -> usize

Source

pub fn arrow_Jump_c(self) -> CursorId

Source

pub fn arrow_Jump_va(self) -> Vaddr

Source

pub fn arrow_VirtAddr_c(self) -> CursorId

Source

pub fn arrow_Map_c(self) -> CursorId

Source

pub fn arrow_Map_fid(self) -> FrameId

Source

pub fn arrow_Map_prop(self) -> PageProperty

Source

pub fn arrow_Unmap_c(self) -> CursorId

Source

pub fn arrow_Unmap_len(self) -> usize

Source

pub fn arrow_ProtectNext_c(self) -> CursorId

Source

pub fn arrow_ProtectNext_len(self) -> usize

Source

pub fn arrow_NewReader_vs(self) -> VmSpaceId

Source

pub fn arrow_NewReader_vaddr(self) -> Vaddr

Source

pub fn arrow_NewReader_len(self) -> usize

Source

pub fn arrow_NewWriter_vs(self) -> VmSpaceId

Source

pub fn arrow_NewWriter_vaddr(self) -> Vaddr

Source

pub fn arrow_NewWriter_len(self) -> usize

Source

pub fn arrow_NewKernelReader_vaddr(self) -> Vaddr

Source

pub fn arrow_NewKernelReader_len(self) -> usize

Source

pub fn arrow_NewKernelWriter_vaddr(self) -> Vaddr

Source

pub fn arrow_NewKernelWriter_len(self) -> usize

Source

pub fn arrow_DropReader_vio(self) -> VmIoId

Source

pub fn arrow_DropWriter_vio(self) -> VmIoId

Source

pub fn arrow_ReaderReadVal_source(self) -> VmIoId

Source

pub fn arrow_ReaderCollect_source(self) -> VmIoId

Source

pub fn arrow_ReaderLimit_vio(self) -> VmIoId

Source

pub fn arrow_ReaderLimit_max(self) -> usize

Source

pub fn arrow_ReaderSkip_vio(self) -> VmIoId

Source

pub fn arrow_ReaderSkip_n(self) -> usize

Source

pub fn arrow_ReaderQuery_vio(self) -> VmIoId

Source

pub fn arrow_WriterWriteVal_writer(self) -> VmIoId

Source

pub fn arrow_WriterFillZeros_vio(self) -> VmIoId

Source

pub fn arrow_WriterFillZeros_len(self) -> usize

Source

pub fn arrow_WriterLimit_vio(self) -> VmIoId

Source

pub fn arrow_WriterLimit_max(self) -> usize

Source

pub fn arrow_WriterSkip_vio(self) -> VmIoId

Source

pub fn arrow_WriterSkip_n(self) -> usize

Source

pub fn arrow_WriterQuery_vio(self) -> VmIoId

Source

pub fn arrow_Read_source(self) -> VmIoId

Source

pub fn arrow_Read_dest(self) -> VmIoId

Source

pub fn arrow_Write_source(self) -> VmIoId

Source

pub fn arrow_Write_dest(self) -> VmIoId

Source

pub fn arrow_FrameFromUnused_paddr(self) -> Paddr

Source

pub fn arrow_FrameFromInUse_paddr(self) -> Paddr

Source

pub fn arrow_FrameDrop_fid(self) -> FrameId

Source

pub fn arrow_SegmentFromUnused_range(self) -> Range<Paddr>

Source

pub fn arrow_SegmentDrop_sid(self) -> SegmentId

Source

pub fn arrow_SegmentSplit_sid(self) -> SegmentId

Source

pub fn arrow_SegmentSplit_offset(self) -> usize

Source

pub fn arrow_SegmentNext_sid(self) -> SegmentId

Source

pub fn arrow_SegmentClone_sid(self) -> SegmentId

Source

pub fn arrow_SegmentSlice_sid(self) -> SegmentId

Source

pub fn arrow_SegmentSlice_sub_range(self) -> Range<Paddr>

Source

pub fn arrow_UniqueFromUnused_paddr(self) -> Paddr

Source

pub fn arrow_UniqueDrop_uid(self) -> UniqueId

Source

pub fn arrow_FromUnique_uid(self) -> UniqueId

Source

pub fn arrow_TryFromShared_fid(self) -> FrameId

Auto Trait Implementations§

§

impl Freeze for Op

§

impl RefUnwindSafe for Op

§

impl Send for Op

§

impl Sync for Op

§

impl Unpin for Op

§

impl UnsafeUnpin for Op

§

impl UnwindSafe for Op

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, VERUS_SPEC__A> FromSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: From<T>,

§

fn obeys_from_spec() -> bool

§

fn from_spec(v: T) -> VERUS_SPEC__A

§

impl<T> FromSpecImpl<T> for T

§

fn obeys_from_spec() -> bool

§

fn from_spec(v: T) -> T

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, VERUS_SPEC__A> IntoSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: Into<T>,

§

fn obeys_into_spec() -> bool

§

fn into_spec(self) -> T

§

impl<T, U> IntoSpecImpl<U> for T
where U: From<T>,

§

fn obeys_into_spec() -> bool

§

fn into_spec(self) -> U

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<A> SpecEq<&A> for A
where A: ?Sized,

§

impl<A> SpecEq<&mut A> for A
where A: ?Sized,

§

impl<A> SpecEq<A> for A
where A: ?Sized,

§

impl<A> SpecEq<Ghost<A>> for A

§

impl<A> SpecEq<Tracked<A>> for A

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, VERUS_SPEC__A> TryFromSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: TryFrom<T>,

§

fn obeys_try_from_spec() -> bool

§

fn try_from_spec( v: T, ) -> Result<VERUS_SPEC__A, <VERUS_SPEC__A as TryFrom<T>>::Error>

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, VERUS_SPEC__A> TryIntoSpec<T> for VERUS_SPEC__A
where VERUS_SPEC__A: TryInto<T>,

§

fn obeys_try_into_spec() -> bool

§

fn try_into_spec(self) -> Result<T, <VERUS_SPEC__A as TryInto<T>>::Error>

§

impl<T, U> TryIntoSpecImpl<U> for T
where U: TryFrom<T>,

§

fn obeys_try_into_spec() -> bool

§

fn try_into_spec(self) -> Result<U, <U as TryFrom<T>>::Error>