函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:setup_sgl

函数原型:static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, unsigned int off)

返回类型:unsigned int

参数:

类型参数名称
struct __kfifo *fifo
struct scatterlist *sgl
intnents
unsigned intlen
unsigned intoff
337  size等于mask加1
338  esize等于esize
342  off与等于mask
343  如果esize不等于1则
344  off乘等于esize
345  size乘等于esize
346  len乘等于esize
348  l等于两数取小(len, size - off)
350  n等于setup_sgl_buf(sgl, data + off, nents, l)
351  n加等于setup_sgl_buf(sgl + n, data, nents - n, len - l)
353  返回:n
调用者
名称描述
__kfifo_dma_in_prepare
__kfifo_dma_out_prepare
__kfifo_dma_in_prepare_r
__kfifo_dma_out_prepare_r