Struct riot_sys::os_mbuf_pool[][src]

#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.