riot_sys

Function os_msys_get

Source
pub unsafe extern "C" fn os_msys_get(
    dsize: u16,
    leadingspace: u16,
) -> *mut os_mbuf
Expand description

Allocate a mbuf from msys. Based upon the data size requested, os_msys_get() will choose the mbuf pool that has the best fit.

@param dsize The estimated size of the data being stored in the mbuf @param leadingspace The amount of leadingspace to allocate in the mbuf

@return A freshly allocated mbuf on success, NULL on failure.