mm/iob/contig: enhance iob contig to support iob chain

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an
2022-12-18 16:14:25 +08:00
committed by Xiang Xiao
parent da9a2b9770
commit 56a4e90dc4
3 changed files with 52 additions and 79 deletions
+3 -3
View File
@@ -562,12 +562,12 @@ FAR struct iob_s *iob_pack(FAR struct iob_s *iob);
* Name: iob_contig
*
* Description:
* Ensure that there is 'len' bytes of contiguous space at the beginning
* of the I/O buffer chain starting at 'iob'.
* Merge an iob chain into a continuous space, thereby reducing iob
* consumption
*
****************************************************************************/
int iob_contig(FAR struct iob_s *iob, unsigned int len);
FAR struct iob_s *iob_contig(FAR struct iob_s *iob);
/****************************************************************************
* Name: iob_reserve