Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\sg_pool.c Create Date:2022-07-28 07:20:33
Last Modify:2022-05-21 18:25:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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:

Proto:int sg_alloc_table_chained(struct sg_table *table, int nents, struct scatterlist *first_chunk, unsigned nents_first_chunk)

Type:int

Parameter:

TypeParameterName
struct sg_table *table
intnents
struct scatterlist *first_chunk
unsignednents_first_chunk
116  BUG_ON(!nents)
118  If first_chunk && nents_first_chunk Then
119  If nents <= nents_first_chunk Then
122  Return 0
127  If nents_first_chunk <= 1 Then
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  If Value for the false possibility is greater at compile time(ret) Then 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  Return ret