函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pipe_occupancy - Return number of slots used in the pipe*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer

函数原型:static inline unsigned int pipe_occupancy(unsigned int head, unsigned int tail)

返回类型:unsigned int

参数:

类型参数名称
unsigned inthead
unsigned inttail
126  返回:headtail
调用者
名称描述
sanity
pipe_set_sizeAllocate a new array of pipe buffers and copy the info over. Returns the* pipe size if successful, or return -ERROR on error.
pipe_to_sendpageSend 'sd->len' bytes to socket from 'sd->file' at position 'sd->pos'* using sendpage(). Return the number of bytes sent.
splice_direct_to_actorsplice_direct_to_actor - splices data directly between two non-pipes*@in: file to splice from*@sd: actor information on where to splice to*@actor: handles the data splicing* Description:* This is a special case helper to splice directly between two
do_spliceDetermine where to splice to/from.
pipe_fullpipe_full - Return true if the pipe is full*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer*@limit: The maximum amount of slots available.
pipe_space_for_userpipe_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