Struct simics::api::interface::interfaces::DirectMemoryInterface
source · pub struct DirectMemoryInterface {
obj: *mut ConfObject,
interface: *mut direct_memory_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut direct_memory_interface
Implementations§
source§impl DirectMemoryInterface
impl DirectMemoryInterface
sourcepub fn get_handle(
&mut self,
requester: *mut conf_object_t,
subsystem: uint64,
offs: uint64,
size: c_uint,
) -> Result<direct_memory_handle_t>
pub fn get_handle( &mut self, requester: *mut conf_object_t, subsystem: uint64, offs: uint64, size: c_uint, ) -> Result<direct_memory_handle_t>
Automatically generated method for the interface
sourcepub fn request(
&mut self,
handle: direct_memory_handle_t,
permission: access_t,
inhibit: access_t,
) -> Result<direct_memory_t>
pub fn request( &mut self, handle: direct_memory_handle_t, permission: access_t, inhibit: access_t, ) -> Result<direct_memory_t>
Automatically generated method for the interface
sourcepub fn revoke(
&mut self,
access: access_t,
permission: access_t,
inhibit: access_t,
) -> Result<()>
pub fn revoke( &mut self, access: access_t, permission: access_t, inhibit: access_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_user_data(
&mut self,
handle: direct_memory_handle_t,
) -> Result<*mut c_void>
pub fn get_user_data( &mut self, handle: direct_memory_handle_t, ) -> Result<*mut c_void>
Automatically generated method for the interface
sourcepub fn set_user_data(
&mut self,
handle: direct_memory_handle_t,
user_data: *mut c_void,
) -> Result<()>
pub fn set_user_data( &mut self, handle: direct_memory_handle_t, user_data: *mut c_void, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for DirectMemoryInterface
impl Interface for DirectMemoryInterface
source§const NAME: &'static [u8] = crate::api::sys::DIRECT_MEMORY_INTERFACE
const NAME: &'static [u8] = crate::api::sys::DIRECT_MEMORY_INTERFACE
The name of the interface
source§type InternalInterface = direct_memory_interface
type InternalInterface = direct_memory_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for DirectMemoryInterface
impl RefUnwindSafe for DirectMemoryInterface
impl !Send for DirectMemoryInterface
impl !Sync for DirectMemoryInterface
impl Unpin for DirectMemoryInterface
impl UnwindSafe for DirectMemoryInterface
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