You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The avail_count is currently used as a statistics variable to show some information in net-shell. This could be converted to be atomic_t if needed. Patches are welcome if you want to improve the code.
Hi,
I am using CONFIG_NET_BUF_POOL_USAGE and saw that increasing and decreasing "avail_count" is done without atomic variable and without any locks.
for example:
Can you explain how can I be sure that avail_count is valid, is there any protections on it that I miss?
Thanks,
Ehud
The text was updated successfully, but these errors were encountered: