pub enum SharedVmoRegisterRequest {
RegisterVmo {
vmo_id: u32,
vmo: Range,
rights: SharedVmoRight,
responder: SharedVmoRegisterRegisterVmoResponder,
},
UnregisterVmo {
vmo_id: u32,
responder: SharedVmoRegisterUnregisterVmoResponder,
},
}Expand description
This is a generic protocol for sharing VMOs that drivers may compose.
Variants§
RegisterVmo
Registers a VMO and transfers ownership to the driver. vmo_id: The ID chosen by the client that will be used in operations on this VMO. vmo: The handle, offset, and size of this VMO. IO operations on this VMO will be relative to the offset and size specified here. rights: A bit field of SharedVmoRight values indicating how this VMO may be used. Callers should assume that the driver will map and/or pin the VMO using these rights.
UnregisterVmo
Unmaps and/or unpins the VMO and returns the handle to the caller.
Implementations§
pub fn into_register_vmo( self, ) -> Option<(u32, Range, SharedVmoRight, SharedVmoRegisterRegisterVmoResponder)>
pub fn into_unregister_vmo( self, ) -> Option<(u32, SharedVmoRegisterUnregisterVmoResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more