riot_sys

Function netif_get_name

Source
pub unsafe extern "C" fn netif_get_name(
    netif: *const netif_t,
    name: *mut c_char,
) -> c_int
Expand description

@brief Gets name of an interface

@pre name != NULL @pre name holds at least @ref CONFIG_NETIF_NAMELENMAX characters

@note Supposed to be implemented by the networking module. name must be zero-terminated in the result!

@param[in] netif A network interface. @param[out] name The name of the interface. Must not be NULL. Must at least hold @ref CONFIG_NETIF_NAMELENMAX bytes.

@return length of @p name on success