Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pipe_truncate

Proto:static inline void pipe_truncate(struct iov_iter *i)

Type:void

Parameter:

TypeParameterName
struct iov_iter *i
1012  pipe = pipe
1013  p_tail = tail
1014  p_head = head
1015  p_mask = ring_size - 1
1017  If Not pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer Then
1019  i_head = head
1020  off = iov_offset
1022  If off Then
1023  buf = bufs[i_head & p_mask]
1024  len = off - offset
1025  i_head++
1027  When p_head != i_head cycle
1028  p_head--
1032  head = p_head
Caller
NameDescribe
pipe_advance
iov_iter_revert