mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
mm/iob: add iob_free_queue() interface
Change-Id: Ic06d9725e6b7ff4aac554f735d4c88bdec519d18 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user