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:process_access_response

Proto:static int process_access_response(struct fsnotify_group *group, struct fanotify_response *response_struct)

Type:int

Parameter:

TypeParameterName
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  Case & == Legit userspace responses to a _PERM event
179  Case & == FAN_DENY
180  Break
181  Default
182  Return -EINVAL
185  If fd < 0 Then Return -EINVAL
188  If response & Bit mask to create audit record for result && Not FAN_GROUP_FLAG(group, FAN_ENABLE_AUDIT) Then Return -EINVAL
191  spin_lock( & protect the notification_list )
194  If d we passed to userspace for this event != fd Then Continue
197  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
198  Finish processing of permission event by setting it to ANSWERED state and* drop group->notification_lock.
199  wake_up( & access_waitq)
200  Return 0
202  spin_unlock( & protect the notification_list )
204  Return -ENOENT
Caller
NameDescribe
fanotify_write