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:This will not remove the event, that must be done with* fsnotify_remove_first_event()

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

Type:struct fsnotify_event

Parameter:

TypeParameterName
struct fsnotify_group *group
167  assert_spin_locked( & protect the notification_list )
169  Return 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)
Caller
NameDescribe
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.