riot_sys

Function netif_get_by_name_buffer

Source
pub unsafe extern "C" fn netif_get_by_name_buffer(
    name: *const c_char,
    name_len: size_t,
) -> *mut netif_t
Expand description

@brief Gets interface by name, from a buffer

@pre name != NULL

@param[in] name The name of an interface as an array of chars. Must not be NULL. @param[in] name_len Number of characters in @p name.

@return Pointer to the interface that matches the name @retval NULL if no interface is named @p name.