Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pipe.c Create Date:2022-07-28 20:04:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pipe_fasync

Proto:static int pipe_fasync(int fd, struct file *filp, int on)

Type:int

Parameter:

TypeParameterName
intfd
struct file *filp
inton
722  pipe = needed for tty driver, and maybe others
723  retval = 0
725  __pipe_lock(pipe)
726  If f_mode & le is open for reading Then retval = SMP safe fasync helpers:
728  If f_mode & le is open for writing && retval >= 0 Then
729  retval = SMP safe fasync helpers:
730  If retval < 0 && f_mode & le is open for reading Then SMP safe fasync helpers:
734  __pipe_unlock(pipe)
735  Return retval