函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static struct fsnotify_event *get_one_event(struct fsnotify_group *group, size_t count)

返回类型:struct fsnotify_event

参数:

类型参数名称
struct fsnotify_group *group
size_tcount
135  event_size等于sizeof(structinotify_event)
138  如果rn true if the notify queue is empty, false otherwise 则返回: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  如果event_size大于count则返回:错误号
151  Remove and return the first event from the notification list. It is the* responsibility of the caller to destroy the obtained event
153  返回:event
调用者
名称描述
inotify_read