Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Remove and return the first event from the notification list. It is the* responsibility of the caller to destroy the obtained event

Proto:struct fsnotify_event *fsnotify_remove_first_event(struct fsnotify_group *group)

Type:struct fsnotify_event

Parameter:

TypeParameterName
struct fsnotify_group *group
151  assert_spin_locked( & protect the notification_list )
153  pr_debug("%s: group=%p\n", __func__, group)
155  event = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & list of event_holder this group needs to send to userspace , structfsnotify_event, list)
157  fsnotify_remove_queued_event(group, event)
158  Return event
Caller
NameDescribe
fsnotify_flush_notifyCalled when a group is being torn down to clean up any outstanding* event notifications.
get_one_eventGet an inotify_kernel_event if one exists and is small* enough to fit in "count". Return an error pointer if* not large enough.* Called with the group->notification_lock held.
get_one_eventGet an fsnotify notification event if one exists and is small* enough to fit in "count". Return an error pointer if the count* is not large enough. When permission event is dequeued, its state is* updated accordingly.
fanotify_release