Skip to main content

Op

Enum Op 

Source
pub enum Op {
Show 37 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, },
}
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

Fields

§prop: PageProperty
§

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>. The exec spec carries no tracked owner params (handle MODEL GAP); the embedding step is consequently a no-op on VmStore.

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. The exec no longer surfaces consumed_w; the embedding does NOT create a fresh entry.

Fields

§source: VmIoId
§dest: VmIoId
§

FrameFromUnused

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

Fields

§paddr: Paddr
§

FrameFromInUse

Frame::from_in_use: try to acquire a new handle on an in-use slot. Registers a FrameEntry on success (refcount of the slot increments by one).

Fields

§paddr: Paddr
§

FrameDrop

Drop one outstanding Frame handle. There is exactly one drop; the step branches internally on the live refcount (mirroring exec drop): >= 2 decrements (slot stays SHARED), == 1 tears down to UNUSED (requires the slot detached from the page table — paths_in_pt.is_empty()). See frame::drop_pre.

Fields

§

SegmentFromUnused

Segment::from_unused: allocate a fresh segment over a range of previously-unused slots. Each frame in range transitions usage == UnusedFrame, rc 0 → 1, raw_count 0 → 1. Registers a SegmentEntry on success.

Fields

§range: Range<Paddr>
§

SegmentDrop

Drop a Segment handle. Releases the segment’s forgotten reference at each frame in the range; frames whose rc reaches 1 transition to UNUSED.

Fields

§

SegmentSplit

Segment::split: split a segment at a page-aligned byte offset from its start, producing two segments covering the disjoint halves. regions is unchanged (per-paddr cover_count is invariant — each covered paddr lands in exactly one half). Removes sid from s.segments, inserts two fresh SegmentEntrys.

Fields

§offset: usize
§

SegmentNext

Segment::next: pop the front frame off sid’s range, producing a fresh Frame<M> handle (a new FrameEntry registered in s.frames). The segment’s range shrinks by one page from the front; if it becomes empty, sid is removed from s.segments. The conversion bridge between segment-held forgotten references and user-held Frame handles: at the popped paddr raw_count -= 1, cover_count -= 1, H += 1, rc unchanged.

Fields

Implementations§

Source§

impl Op

Source

pub fn arrow_fid(self) -> FrameId

Source

pub fn arrow_dest(self) -> VmIoId

Source

pub fn arrow_max(self) -> usize

Source

pub fn arrow_c(self) -> CursorId

Source

pub fn arrow_len(self) -> usize

Source

pub fn arrow_offset(self) -> usize

Source

pub fn arrow_writer(self) -> VmIoId

Source

pub fn arrow_vs(self) -> VmSpaceId

Source

pub fn arrow_paddr(self) -> Paddr

Source

pub fn arrow_n(self) -> usize

Source

pub fn arrow_vaddr(self) -> Vaddr

Source

pub fn arrow_vio(self) -> VmIoId

Source

pub fn arrow_sid(self) -> SegmentId

Source

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

Source

pub fn arrow_prop(self) -> PageProperty

Source

pub fn arrow_source(self) -> VmIoId

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

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
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

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

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>

§

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