函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pipe_fasync

函数原型:static int pipe_fasync(int fd, struct file *filp, int on)

返回类型:int

参数:

类型参数名称
intfd
struct file *filp
inton
722  pipe等于 needed for tty driver, and maybe others
723  retval等于0
725  __pipe_lock(pipe)
726  如果f_mode按位与le is open for reading retval等于SMP safe fasync helpers:
728  如果f_mode按位与le is open for writing retval大于等于0则
729  retval等于SMP safe fasync helpers:
730  如果retval小于0且f_mode按位与le is open for reading SMP safe fasync helpers:
734  __pipe_unlock(pipe)
735  返回:retval