Function report |
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 activity | Download SCCT | Chinese |
Name:Copy an event to user space, returning how much we copied.* We already checked that the event size is smaller than the* buffer we had in "get_one_event()" above.
Proto:static ssize_t copy_event_to_user(struct fsnotify_group *group, struct fsnotify_event *fsn_event, char __user *buf)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct fsnotify_group * | group | |
struct fsnotify_event * | fsn_event | |
char __user * | buf |
168 | event_size = size of inotify_event |
182 | watch mask = inotify_mask_to_arg(mask) |
183 | watch descriptor = wd |
187 | If copy_to_user(buf, & inotify_event, event_size) Then Return -EFAULT |
190 | buf += event_size |
197 | If pad_name_len Then |
199 | If copy_to_user(buf, name, name_len) Then Return -EFAULT |
206 | event_size += pad_name_len |
209 | Return event_size |
Name | Describe |
---|---|
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 |