You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/29 19:03:14 UTC

[GitHub] [incubator-nuttx] Ouss4 commented on pull request #5110: net/devif: allocate devif callback dynamically

Ouss4 commented on pull request #5110:
URL: https://github.com/apache/incubator-nuttx/pull/5110#issuecomment-1002737168


   > > Since now we are allocating the callback structure dynamically, shouldn't `devif_callback_free` also free this buffer?
   > 
   > In order to avoid frequent access to the allocator, the current implement just re-queue the callback entry back to the freelist,we will reuse this area to avoid memory fragmentation
   
   Looking at the implementation of `devif_callback_alloc` right now, it seems to be allocating the whole pool for each call.  How is this working?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org