Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pipe_zero

Proto:static size_t pipe_zero(size_t bytes, struct iov_iter *i)

Type:size_t

Parameter:

TypeParameterName
size_tbytes
struct iov_iter *i
947  pipe = pipe
948  p_mask = ring_size - 1
952  If Not sanity(i) Then Return 0
955  bytes = n = push_pipe(i, bytes, & i_head, & off)
956  If Value for the false possibility is greater at compile time(!n) Then Return 0
959  Do
960  chunk = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, n, PAGE_SIZE - off)
961  memzero_page(page, off, chunk)
962  head = i_head
963  iov_offset = off + chunk
964  n -= chunk
965  off = 0
966  i_head++
967  When n cycle
968  count -= bytes
969  Return bytes
Caller
NameDescribe
iov_iter_zero