This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f24fb2b10a3647cb25bd2eebcb81ec39d1a7539b Author: anjiahao <[email protected]> AuthorDate: Wed Nov 23 22:19:21 2022 +0800 mempool:add a private pointer to stroe private data Signed-off-by: anjiahao <[email protected]> --- include/nuttx/mm/mempool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nuttx/mm/mempool.h b/include/nuttx/mm/mempool.h index b85795207d..0309c4224b 100644 --- a/include/nuttx/mm/mempool.h +++ b/include/nuttx/mm/mempool.h @@ -68,6 +68,7 @@ struct mempool_s size_t interruptsize; /* The initialize size in interrupt mempool */ size_t expandsize; /* The size of expand block every time for mempool */ bool wait; /* The flag of need to wait when mempool is empty */ + FAR void *priv; /* This pointer is used to store the user's private data */ mempool_alloc_t alloc; /* The alloc function for mempool */ mempool_free_t free; /* The free function for mempool */
