函数逻辑报告

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_buf

函数原型:static int setup_sgl_buf(struct scatterlist *sgl, void *buf, int nents, unsigned int len)

返回类型:int

参数:

类型参数名称
struct scatterlist *sgl
void *buf
intnents
unsigned intlen
303  如果非nents则返回:0
306  如果非len则返回:0
309  n等于0
310  page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(buf)
311  off等于offset_in_page(buf)
312  l等于0
314 len大于等于lPAGE_SIZEoff循环
317  l加等于PAGE_SIZE
318  buf加等于PAGE_SIZE
319  npage等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(buf)
323  如果(++n == nents || sgl == NULL)则返回:n
325  page等于npage
326  len减等于loff
327  l等于off等于0
330  sg_set_page - Set sg entry to point at given page*@sg: SG entry*@page: The page*@len: Length of data*@offset: Offset into page* Description:* Use this function to set an sg entry pointing at a page, never assign* the page directly
331  返回:n加1
调用者
名称描述
setup_sgl