Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pipe_advance

Proto:static void pipe_advance(struct iov_iter *i, size_t size)

Type:void

Parameter:

TypeParameterName
struct iov_iter *i
size_tsize
1038  pipe = pipe
1039  If Value for the false possibility is greater at compile time(count < size) Then size = count
1041  If size Then
1043  p_mask = ring_size - 1
1044  i_head = head
1045  off = iov_offset , left = size
1047  If off Then left += off - offset
1049  When 1 cycle
1050  buf = bufs[i_head & p_mask]
1051  If left <= len Then Break
1053  left -= len
1054  i_head++
1056  head = i_head
1057  iov_offset = offset + left
1059  count -= size
1061  pipe_truncate(i)
Caller
NameDescribe
iov_iter_advance