函数逻辑报告

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

函数名称:This will not remove the event, that must be done with* fsnotify_remove_first_event()

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

返回类型:struct fsnotify_event

参数:

类型参数名称
struct fsnotify_group *group
167  assert_spin_locked( & protect the notification_list )
169  返回: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)
调用者
名称描述
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.