函数逻辑报告 |
Source Code:fs\notify\fanotify\fanotify_user.c |
Create Date:2022-07-29 10:50:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:copy_fid_to_user
函数原型:static int copy_fid_to_user(struct fanotify_event *event, char __user *buf)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 | 如果非len则返回:0 |
| 225 | 如果copy_to_user(buf, & info, info的长度)则返回:负EFAULT |
| 231 | handle_bytes等于fh_len |
| 232 | 如果copy_to_user(buf, & handle, handle的长度)则返回:负EFAULT |
| 241 | fh等于fanotify_event_fh(event) |
| 246 | 如果copy_to_user(buf, fh, fh_len)则返回:负EFAULT |
| 252 | WARN_ON_ONCE(len < 0 || len >= FANOTIFY_EVENT_ALIGN) |
| 256 | 返回:0 |
| 名称 | 描述 |
|---|---|
| copy_event_to_user |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |