Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\scatterlist.c Create Date:2022-07-28 06:20:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sg_nents_for_len - return total count of entries in scatterlist* needed to satisfy the supplied length*@sg: The scatterlist*@len: The total required length* Description:* Determines the number of entries in sg that are required to meet* the supplied

Proto:int sg_nents_for_len(struct scatterlist *sg, u64 len)

Type:int

Parameter:

TypeParameterName
struct scatterlist *sg
u64len
73  If Not len Then Return 0
76  When sg cycle
77  nents++
78  total += length
79  If total >= len Then Return nents
83  Return -EINVAL
Caller
NameDescribe
mpi_write_to_sglmpi_write_to_sgl() - Funnction exports MPI to an sgl (msb first)* This function works in the same way as the mpi_read_buffer, but it* takes an sgl instead of u8 * buf.*@a: a multi precision integer*@sgl: scatterlist to write to. Needs to be at least
mpi_read_raw_from_sglmpi_read_raw_from_sgl() - Function allocates an MPI and populates it with* data from the sgl* This function works in the same way as the mpi_read_raw_data, but it* takes an sgl instead of void * buffer. i.e. it allocates