函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-27 07:20:01
Last Modify:2022-05-21 11:43:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pipe_get_pages

函数原型:static ssize_t pipe_get_pages(struct iov_iter *i, struct page **pages, size_t maxsize, unsigned maxpages, size_t *start)

返回类型:ssize_t

参数:

类型参数名称
struct iov_iter *i
struct page **pages
size_tmaxsize
unsignedmaxpages
size_t *start
1296  如果非maxsize则返回:0
1299  如果非sanity(i)则返回:负EFAULT
1302  data_start(i, & iter_head, start)
1304  npages等于pipe_space_for_user - Return number of slots available to userspace*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer*@pipe: The pipe info structure
1305  capacity等于两数取小(npages, maxpages)乘PAGE_SIZEstart
1307  返回:__pipe_get_pages(i, 两数取小(maxsize, capacity), pages, iter_head, start)
调用者
名称描述
iov_iter_get_pages