mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
mm/iob/contig: enhance iob contig to support iob chain
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user