Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iov_iter_npages

Proto:int iov_iter_npages(const struct iov_iter *i, int maxpages)

Type:int

Parameter:

TypeParameterName
const struct iov_iter *i
intmaxpages
1587  size = count
1588  npages = 0
1590  If Not size Then Return 0
1592  If Value for the false possibility is greater at compile time(iov_iter_is_discard(i)) Then Return 0
1595  If Value for the false possibility is greater at compile time(iov_iter_is_pipe(i)) Then
1596  pipe = pipe
1600  If Not sanity(i) Then Return 0
1603  data_start(i, & iter_head, & off)
1605  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
1606  If npages >= maxpages Then Return maxpages
1608  Else iterate_all_kinds(i, size, v, ({unsignedlongp = (unsignedlong)iov_base;npages += DIV_ROUND_UP(p + iov_len, PAGE_SIZE) - p / PAGE_SIZE;If npages >= maxpages Then Return maxpages;0;}), ({npages++;If npages >= maxpages Then Return maxpages;}), ({unsignedlongp = (unsignedlong)iov_base;npages += DIV_ROUND_UP(p + iov_len, PAGE_SIZE) - p / PAGE_SIZE;If npages >= maxpages Then Return maxpages;}))
1626  Return npages
Caller
NameDescribe
blkdev_direct_IO
do_blockdev_direct_IOThis is a library function for use by filesystem drivers
iomap_dio_bio_actor