Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-28 06:22:55
Last Modify:2022-05-21 11:43:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pipe_get_pages

Proto:static ssize_t pipe_get_pages(struct iov_iter *i, struct page **pages, size_t maxsize, unsigned maxpages, size_t *start)

Type:ssize_t

Parameter:

TypeParameterName
struct iov_iter *i
struct page **pages
size_tmaxsize
unsignedmaxpages
size_t *start
1296  If Not maxsize Then Return 0
1299  If Not sanity(i) Then Return -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 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(npages, maxpages) * PAGE_SIZE - start
1307  Return __pipe_get_pages(i, min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(maxsize, capacity), pages, iter_head, start)
Caller
NameDescribe
iov_iter_get_pages