#[repr(C)]pub struct os_mbuf_pool {
pub omp_databuf_len: u16,
pub omp_pool: *mut os_mempool,
pub omp_next: os_mbuf_pool__bindgen_ty_1,
}
Expand description
A mbuf pool from which to allocate mbufs. This contains a pointer to the os mempool to allocate mbufs out of, the total number of elements in the pool, and the amount of “user” data in a non-packet header mbuf. The total pool size, in bytes, should be: os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))
Fields§
§omp_databuf_len: u16
Total length of the databuf in each mbuf. This is the size of the mempool block, minus the mbuf header
omp_pool: *mut os_mempool
The memory pool which to allocate mbufs out of
omp_next: os_mbuf_pool__bindgen_ty_1
Trait Implementations§
Source§impl Clone for os_mbuf_pool
impl Clone for os_mbuf_pool
Source§fn clone(&self) -> os_mbuf_pool
fn clone(&self) -> os_mbuf_pool
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for os_mbuf_pool
impl Debug for os_mbuf_pool
Source§impl Default for os_mbuf_pool
impl Default for os_mbuf_pool
impl Copy for os_mbuf_pool
Auto Trait Implementations§
impl Freeze for os_mbuf_pool
impl RefUnwindSafe for os_mbuf_pool
impl !Send for os_mbuf_pool
impl !Sync for os_mbuf_pool
impl Unpin for os_mbuf_pool
impl UnwindSafe for os_mbuf_pool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes