mm/iob: add iob_free_queue() interface

Change-Id: Ic06d9725e6b7ff4aac554f735d4c88bdec519d18
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-02-26 21:22:51 +08:00
parent af341ee4fc
commit 87de0294a0
3 changed files with 111 additions and 0 deletions
+13
View File
@@ -427,6 +427,19 @@ FAR struct iob_s *iob_remove_queue(FAR struct iob_queue_s *iobq);
FAR struct iob_s *iob_peek_queue(FAR struct iob_queue_s *iobq);
#endif
/****************************************************************************
* Name: iob_free_queue
*
* Description:
* Free an entire queue of I/O buffer chains.
*
****************************************************************************/
#if CONFIG_IOB_NCHAINS > 0
void iob_free_queue(FAR struct iob_s *iob, FAR struct iob_queue_s *iobq,
enum iob_user_e producerid);
#endif /* CONFIG_IOB_NCHAINS > 0 */
/****************************************************************************
* Name: iob_destroy_queue
*