Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:void

Parameter:

TypeParameterName
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  If state of the event == FAN_EVENT_CANCELED Then destroy = true
156  Else state of the event = FAN_EVENT_ANSWERED
158  spin_unlock( & protect the notification_list )
159  If destroy Then fsnotify_destroy_event(group, & fse)
Caller
NameDescribe
process_access_response
fanotify_read
fanotify_release