Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get 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.

Proto:static struct fsnotify_event *get_one_event(struct fsnotify_group *group, size_t count)

Type:struct fsnotify_event

Parameter:

TypeParameterName
struct fsnotify_group *group
size_tcount
135  event_size = sizeof(structinotify_event)
138  If rn true if the notify queue is empty, false otherwise Then Return NULL
141  event = This will not remove the event, that must be done with* fsnotify_remove_first_event()
143  pr_debug("%s: group=%p event=%p\n", __func__, group, event)
145  event_size += round_event_name_len(event)
146  If event_size > count Then Return ERR_PTR( - EINVAL)
151  Remove and return the first event from the notification list. It is the* responsibility of the caller to destroy the obtained event
153  Return event
Caller
NameDescribe
inotify_read