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_fid_to_user
Proto:static int copy_fid_to_user(struct fanotify_event *event, char __user *buf)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct fanotify_event * | event | |
char __user * | buf |
209 | struct fanotify_event_info_fid info = {} |
210 | struct file_handle handle = {} |
213 | len = fanotify_event_info_len(event) |
215 | If Not len Then Return 0 |
225 | If copy_to_user(buf, & info, size of info ) Then Return -EFAULT |
231 | handle_bytes = fh_len |
232 | If copy_to_user(buf, & handle, size of handle ) Then Return -EFAULT |
241 | fh = fanotify_event_fh(event) |
246 | If copy_to_user(buf, fh, fh_len) Then Return -EFAULT |
252 | WARN_ON_ONCE(len < 0 || len >= FANOTIFY_EVENT_ALIGN) |
256 | Return 0 |
Name | Describe |
---|---|
copy_event_to_user |
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 |