函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\mpi\mpicoder.c Create Date:2022-07-27 08:17:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpi_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

函数原型:int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes, int *sign)

返回类型:int

参数:

类型参数名称
MPIa
struct scatterlist *sgl
unsignednbytes
int *sign
258  n等于需要存储的数量极大值
263  如果signsign等于 indicates a negative number
266  如果nbytes小于n则返回:负EOVERFLOW
269  nents等于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
270  如果nents小于0则返回:负EINVAL
273  开始映射迭代一个SG名单
274  sg_miter_next - proceed mapping iterator to the next mapping*@miter: sg mapping iter to proceed* Description:* Proceeds @miter to the next mapping. @miter should have been started* using sg_miter_start(). On successful return, @miter->page,
275  buf_len等于 length of the mapped area
276  p2等于 pointer to the mapped area
278 nbytes大于n循环
279  i等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, nbytes - n, buf_len)
280  memset(p2, 0, i)
281  p2加等于i
282  nbytes减等于i
284  buf_len减等于i
285  如果非buf_len
292 i大于等于0循环
294  alimb等于如果 array with the limbs [i]则cpu_to_be32( array with the limbs [i])否则0
300  p = (u8 * ) & alimb
302 x小于alimb的长度循环
303  p2自加等于p自加
304  如果非buf_len先自减则
312  sg_miter_stop - stop mapping iteration*@miter: sg mapping iter to be stopped* Description:* Stops mapping iterator @miter. @miter should have been started* using sg_miter_start(). A stopped iteration can be resumed by* calling sg_miter_next() on it
313  返回:0