mirror of
https://github.com/apache/nuttx.git
synced 2026-08-21 13:38:28 +00:00
mm/iob: add iob_get_queue_size() helper
Change-Id: I117530f364cbef1e011638ff6d14087b7447bde7 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
f0ba04eb2b
commit
2fd5872449
3 changed files with 73 additions and 1 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue