函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:async_helper() is used by almost all character device drivers* to set up the fasync queue, and for regular files by the file* lease code. It returns negative on error, 0 if it did no changes* and positive if it added/deleted the entry.

函数原型:int fasync_helper(int fd, struct file *filp, int on, struct fasync_struct **fapp)

返回类型:int

参数:

类型参数名称
intfd
struct file *filp
inton
struct fasync_struct **fapp
980  如果非on则返回:Remove a fasync entry. If successfully removed, return* positive and clear the FASYNC flag. If no entry exists,* do nothing and return 0.* NOTE! It is very important that the FASYNC flag always* match the state "is the filp on a fasync list".
982  返回:Add a fasync entry. Return negative on error, positive if* added, and zero if did nothing but change an existing one.
调用者
名称描述
pipe_fasync
fsnotify_fasync
io_uring_fasync
lease_modifyWe already had a lease on this file; just change its type
perf_fasync