函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pipe_fs_i.h Create Date:2022-07-27 06:51:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static inline unsigned int pipe_space_for_user(unsigned int head, unsigned int tail, struct pipe_inode_info *pipe)

返回类型:unsigned int

参数:

类型参数名称
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  如果p_occupancy大于等于max_usage则返回:0
155  p_space等于ring_sizep_occupancy
156  如果p_space大于max_usagep_space等于max_usage
158  返回:p_space
调用者
名称描述
pipe_get_pages
pipe_get_pages_alloc
iov_iter_npages