Struct mlx_ethernet::event_queue::EventQueue
source · pub struct EventQueue { /* private fields */ }
Expand description
A data structure that contains the EQ buffer and is used to interact with the EQ once initialized.
Implementations§
source§impl EventQueue
impl EventQueue
sourcepub fn init(
mp: MappedPages,
num_entries: usize,
eqn: Eqn
) -> Result<EventQueue, &'static str>
pub fn init( mp: MappedPages, num_entries: usize, eqn: Eqn ) -> Result<EventQueue, &'static str>
Creates an event queue by mapping the buffer as a slice of EventQueueEntry
s.
Each EQE is set to an initial state.
Arguments
mp
: memory that is to be transformed into a slice of EQEs. The starting physical address should have been passed to the HCA when creating the EQ.num_entries
: number of entries in the EQeqn
: EQ number returned by the HCA
Auto Trait Implementations§
impl RefUnwindSafe for EventQueue
impl Send for EventQueue
impl Sync for EventQueue
impl Unpin for EventQueue
impl UnwindSafe for EventQueue
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