函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:process_access_response

函数原型:static int process_access_response(struct fsnotify_group *group, struct fanotify_response *response_struct)

返回类型:int

参数:

类型参数名称
struct fsnotify_group *group
struct fanotify_response *response_struct
167  fd等于fd
168  response等于response
170  pr_debug("%s: group=%p fd=%d response=%d\n", __func__, group, fd, response)
178  : & == Legit userspace responses to a _PERM event
179  : & == FAN_DENY
180  退出
181  默认
182  返回:负EINVAL
185  如果fd小于0则返回:负EINVAL
188  如果response按位与Bit mask to create audit record for result 且非FAN_GROUP_FLAG(group, FAN_ENABLE_AUDIT)则返回:负EINVAL
191  加自旋锁
194  如果d we passed to userspace for this event 不等于fd则继续下一循环
197  删除链表项并重新初始化
198  Finish processing of permission event by setting it to ANSWERED state and* drop group->notification_lock.
199  wake_up( & access_waitq)
200  返回:0
202  自旋锁解锁
204  返回:负ENOENT
调用者
名称描述
fanotify_write