函数逻辑报告

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

函数名称:Finish processing of permission event by setting it to ANSWERED state and* drop group->notification_lock.

函数原型:static void finish_permission_event(struct fsnotify_group *group, struct fanotify_perm_event *event, unsigned int response)__releases(&group->notification_lock)

返回类型:void

参数:

类型参数名称
struct fsnotify_group *group
struct fanotify_perm_event *event
unsigned intresponse
150  bool destroy = false
152  assert_spin_locked( & protect the notification_list )
153  userspace answer to the event 等于response
154  如果state of the event 恒等于FAN_EVENT_CANCELEDdestroy = true
156  否则state of the event 等于FAN_EVENT_ANSWERED
158  自旋锁解锁
159  如果destroyfsnotify_destroy_event(group, & fse)
调用者
名称描述
process_access_response
fanotify_read
fanotify_release