Function report |
Source Code:lib\kfifo.c |
Create Date:2022-07-28 06:24:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:setup_sgl_buf
Proto:static int setup_sgl_buf(struct scatterlist *sgl, void *buf, int nents, unsigned int len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct scatterlist * | sgl | |
void * | buf | |
int | nents | |
unsigned int | len |
303 | If Not nents Then Return 0 |
306 | If Not len Then Return 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 |
319 | npage = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(buf) |
320 | If Change "struct page" to physical address.(page) != Change "struct page" to physical address.(npage) - l Then |
331 | Return n + 1 |
Name | Describe |
---|---|
setup_sgl |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |