Function report |
Source Code:fs\notify\fanotify\fanotify_user.c |
Create Date:2022-07-28 20:18:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Get 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.
Proto:static struct fsnotify_event *get_one_event(struct fsnotify_group *group, size_t count)
Type:struct fsnotify_event
Parameter:
Type | Parameter | Name |
---|---|---|
struct fsnotify_group * | group | |
size_t | count |
74 | struct fsnotify_event * fsn_event = NULL |
79 | If rn true if the notify queue is empty, false otherwise Then Go to out |
82 | If FAN_GROUP_FLAG(group, Report unique file id ) Then |
87 | If event_size > count Then |
91 | fsn_event = Remove and return the first event from the notification list. It is the* responsibility of the caller to destroy the obtained event |
92 | If fanotify_is_perm_event(mask) Then state of the event = FAN_EVENT_REPORTED |
94 | out : |
96 | Return fsn_event |
Name | Describe |
---|---|
fanotify_read | |
inotify_read |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |