函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pipe.c Create Date:2022-07-29 10:34:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:wait_for_partner

函数原型:static int wait_for_partner(struct pipe_inode_info *pipe, unsigned int *cnt)

返回类型:int

参数:

类型参数名称
struct pipe_inode_info *pipe
unsigned int *cnt
998  cur等于cnt
1000 cur恒等于cnt循环
1001  Drop the inode semaphore and wait for a pipe event, atomically
1002  如果signal_pending(当前进程)则退出
1005  返回:如果cur恒等于cnt则负These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.否则0
调用者
名称描述
fifo_open