函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kfifo_dma_in_prepare_r

函数原型:unsigned int __kfifo_dma_in_prepare_r(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, size_t recsize)

返回类型:unsigned int

参数:

类型参数名称
struct __kfifo *fifo
struct scatterlist *sgl
intnents
unsigned intlen
size_trecsize
551  BUG_ON(!nents)
553  len等于__kfifo_max_r(len, recsize)
555  如果lenrecsize大于rnal helper to calculate the unused elements in a fifo则返回:0
558  返回:setup_sgl(fifo, sgl, nents, len, in + recsize)