Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pipe_fs_i.h Create Date:2022-07-28 05:52:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline unsigned int pipe_space_for_user(unsigned int head, unsigned int tail, struct pipe_inode_info *pipe)

Type:unsigned int

Parameter:

TypeParameterName
unsigned inthead
unsigned inttail
struct pipe_inode_info *pipe
152  p_occupancy = pipe_occupancy - Return number of slots used in the pipe*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer
153  If p_occupancy >= max_usage Then Return 0
155  p_space = ring_size - p_occupancy
156  If p_space > max_usage Then p_space = max_usage
158  Return p_space
Caller
NameDescribe
pipe_get_pages
pipe_get_pages_alloc
iov_iter_npages