Function report |
Source Code:fs\notify\fanotify\fanotify_user.c |
Create Date:2022-07-28 20:18:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:copy_event_to_user
Proto:static ssize_t copy_event_to_user(struct fsnotify_group *group, struct fsnotify_event *fsn_event, char __user *buf, size_t count)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct fsnotify_group * | group | |
struct fsnotify_event * | fsn_event | |
char __user * | buf | |
size_t | count |
266 | fd = No fd set in event |
274 | reserved = 0 |
278 | If fanotify_event_has_path(event) Then |
282 | Else if fanotify_event_has_fid(event) Then |
283 | event_len += fanotify_event_info_len(event) |
292 | If WARN_ON_ONCE(event_len > count) Then Go to out_close_fd |
295 | If copy_to_user(buf, & metadata, Helper functions to deal with fanotify_event_metadata buffers ) Then Go to out_close_fd |
298 | If fanotify_is_perm_event(mask) Then d we passed to userspace for this event = fd |
301 | If fanotify_event_has_path(event) Then |
302 | fd_install(fd, f) |
303 | Else if fanotify_event_has_fid(event) Then |
309 | Return event_len |
311 | out_close_fd : |
312 | If fd != No fd set in event Then |
313 | put_unused_fd(fd) |
316 | Return ret |
Name | Describe |
---|---|
fanotify_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 |