components/esp_netif/lwip/esp_netif_lwip.c
/**
 * @brief Api callback from tcpip thread used to call esp-netif
 * function in lwip task context
 */
@brief Api callback from tcpip thread used to call esp-netif
function in lwip task context
@brief Api callback from tcpip thread used to call esp - netif function in lwip task context
static void esp_netif_api_cb(void *api_msg)
{
    esp_netif_api_msg_t *msg = (esp_netif_api_msg_t *)api_msg;
    if (!msg || !msg->api_fn) {
        ESP_LOGD(TAG, "null msg/api_fn");
        return;
    }
    msg->ret = msg->api_fn(msg);
    ESP_LOGD(TAG, "call api in lwip: ret=0x%x, give sem", msg->ret);
    sys_sem_signal(&api_sync_sem);
}
static void esp_netif_api_cb ( void * api_msg ) { esp_netif_api_msg_t * msg = ( esp_netif_api_msg_t * ) api_msg ; if ( ! msg || ! msg -> api_fn ) { ESP_LOGD ( TAG , " " ) ; return ; } msg -> ret = msg -> api_fn ( msg ) ; ESP_LOGD ( TAG , " " , msg -> ret ) ; sys_sem_signal ( & api_sync_sem ) ; }
@brief Api callback from tcpip thread used to call esp-netif
 function in lwip task context
@brief Api callback from tcpip thread used to call esp - netif function in lwip task context