You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/18 06:12:54 UTC
[nuttx] 03/06: mempool:add a private pointer to stroe private data
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 <an...@xiaomi.com>
AuthorDate: Wed Nov 23 22:19:21 2022 +0800
mempool:add a private pointer to stroe private data
Signed-off-by: anjiahao <an...@xiaomi.com>
---
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 */