mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
mm/mempool: Count the expend block overhead in mempool_info
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
0572bc4d03
commit
313f79d55e
1 changed files with 1 additions and 0 deletions
|
@ -369,6 +369,7 @@ int mempool_info(FAR struct mempool_s *pool, FAR struct mempoolinfo_s *info)
|
|||
info->aordblks = pool->nalloc;
|
||||
#endif
|
||||
info->arena =
|
||||
mempool_queue_lenth(&pool->equeue) * sizeof(sq_entry_t) +
|
||||
(info->aordblks + info->ordblks + info->iordblks) * blocksize;
|
||||
spin_unlock_irqrestore(&pool->lock, flags);
|
||||
info->sizeblks = blocksize;
|
||||
|
|
Loading…
Reference in a new issue