Search found 2 matches

by Daniel81
Thu Apr 28, 2022 9:29 am
Forum: ESP-IDF
Topic: How is the rx buffer of a custom i/o driver using esp_netif_receive() is freed?
Replies: 3
Views: 2958

Re: How is the rx buffer of a custom i/o driver using esp_netif_receive() is freed?

I encountered the same problem and found, that a buffer allocated and passed to esp_err_t esp_netif_receive(esp_netif_t *esp_netif, void *buffer, size_t len, void *eb) will never be freed, even though you specify a driver_free_rx_buffer callback. I found out by try and error (no documentation found)...
by Daniel81
Fri Sep 17, 2021 5:52 pm
Forum: ESP-IDF
Topic: Threadsafe errno
Replies: 1
Views: 1988

Threadsafe errno

Hello I am using ESP-IDF 4.3 and need to evaluate the error reason for some library functions (such as for example "read()") by checking the value of "errno". However, it seems that the errno variable is not thread safe and could report a wrong value set by another task. I thought about putting the ...