riot_sys

Function os_msys_get_pkthdr

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

Allocate a packet header structure from the MSYS pool. See os_msys_register() for a description of MSYS.

@param dsize The estimated size of the data being stored in the mbuf @param user_hdr_len The length to allocate for the packet header structure

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