mm/iob: add iob_get_queue_size() helper

Change-Id: I117530f364cbef1e011638ff6d14087b7447bde7
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2021-04-13 20:50:38 +08:00
parent f0ba04eb2b
commit 2fd5872449
3 changed files with 73 additions and 1 deletions

View file

@ -457,6 +457,18 @@ void iob_destroy_queue(FAR struct iob_queue_s *qhead,
int iob_get_queue_count(FAR struct iob_queue_s *queue);
#endif /* CONFIG_IOB_NCHAINS > 0 */
/****************************************************************************
* Name: iob_get_queue_size
*
* Description:
* Queue helper for get the iob entry size.
*
****************************************************************************/
#if CONFIG_IOB_NCHAINS > 0
size_t iob_get_queue_size(FAR struct iob_queue_s *queue);
#endif /* CONFIG_IOB_NCHAINS > 0 */
/****************************************************************************
* Name: iob_copyin
*