Struct io_uring::types::BufRingEntry
source · pub struct BufRingEntry(/* private fields */);
Implementations§
source§impl BufRingEntry
impl BufRingEntry
An entry in a buf_ring that allows setting the address, length and buffer id.
sourcepub unsafe fn tail(ring_base: *const BufRingEntry) -> *const u16
pub unsafe fn tail(ring_base: *const BufRingEntry) -> *const u16
The offset to the ring’s tail field given the ring’s base address.
The caller should ensure the ring’s base address is aligned with the system’s page size, per the uring interface requirements.
§Safety
The ptr will be dereferenced in order to determine the address of the resv field, so the caller is responsible for passing in a valid pointer. And not just a valid pointer type, but also the argument must be the address to the first entry of the buf_ring for the resv field to even be considered the tail field of the ring. The entry must also be properly initialized.
Auto Trait Implementations§
impl Freeze for BufRingEntry
impl RefUnwindSafe for BufRingEntry
impl Send for BufRingEntry
impl Sync for BufRingEntry
impl Unpin for BufRingEntry
impl UnwindSafe for BufRingEntry
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