函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\notification.c Create Date:2022-07-29 10:47:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct fsnotify_event *fsnotify_remove_first_event(struct fsnotify_group *group)

返回类型:struct fsnotify_event

参数:

类型参数名称
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  返回:event
调用者
名称描述
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