函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\sg_pool.c Create Date:2022-07-27 08:19:17
Last Modify:2022-05-21 18:25:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sg_alloc_table_chained - Allocate and chain SGLs in an sg table*@table: The sg table header to use*@nents: Number of entries in sg list*@first_chunk: first SGL*@nents_first_chunk: number of the SGL of @first_chunk* Description:

函数原型:int sg_alloc_table_chained(struct sg_table *table, int nents, struct scatterlist *first_chunk, unsigned nents_first_chunk)

返回类型:int

参数:

类型参数名称
struct sg_table *table
intnents
struct scatterlist *first_chunk
unsignednents_first_chunk
116  BUG_ON(!nents)
118  如果first_chunknents_first_chunk
119  如果nents小于等于nents_first_chunk
122  返回:0
127  如果nents_first_chunk小于等于1则
128  first_chunk = NULL
129  nents_first_chunk等于0
132  ret等于__sg_alloc_table - Allocate and initialize an sg table with given allocator*@table: The sg table header to use*@nents: Number of entries in sg list*@max_ents: The maximum number of entries the allocator returns per call*@nents_first_chunk: Number of
135  如果此条件成立可能性小(为编译器优化)(ret)则sg_free_table_chained - Free a previously mapped sg table*@table: The sg table header to use*@nents_first_chunk: size of the first_chunk SGL passed to* sg_alloc_table_chained* Description:* Free an sg table previously allocated and setup with
137  返回:ret