mm/iob: add an interface to support dequeue an iob from the queue

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-06-08 23:38:26 +08:00
committed by Xiang Xiao
parent e73883aba5
commit 2c51c29768
4 changed files with 115 additions and 1 deletions
+6
View File
@@ -164,6 +164,7 @@ Public Function Prototypes
- :c:func:`iob_remove_queue()`
- :c:func:`iob_peek_queue()`
- :c:func:`iob_free_queue()`
- :c:func:`iob_free_queue_qentry()`
- :c:func:`iob_copyin()`
- :c:func:`iob_trycopyin()`
- :c:func:`iob_copyout()`
@@ -238,6 +239,11 @@ Public Function Prototypes
Free an entire queue of I/O buffer chains.
.. c:function:: void iob_free_queue_qentry(FAR struct iob_s *iob, \
FAR struct iob_queue_s *iobq);
Free an iob entire queue of I/O buffer chains.
.. c:function:: int iob_copyin(FAR struct iob_s *iob, FAR const uint8_t *src, \
unsigned int len, unsigned int offset, bool throttled);