函数逻辑报告 |
Source Code:fs\notify\fanotify\fanotify.c |
Create Date:2022-07-29 10:49:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:fanotify_encode_fid
函数原型:static int fanotify_encode_fid(struct fanotify_event *event, struct inode *inode, gfp_t gfp, __kernel_fsid_t *fsid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct fanotify_event * | event | |
| struct inode * | inode | |
| gfp_t | gfp | |
| __kernel_fsid_t * | fsid |
| 217 | fid等于With FAN_REPORT_FID, we do not hold any reference on the* victim object. Instead we store its NFS file handle and its* filesystem's fsid as a unique identifier. |
| 218 | bytes等于0 |
| 221 | ext_fh = NULL |
| 222 | dwords等于0 |
| 224 | type等于exportfs_encode_inode_fh(inode, NULL, & dwords, NULL) |
| 237 | type等于exportfs_encode_inode_fh(inode, fanotify_fid_fh(fid, bytes), & dwords, NULL) |
| 246 | 返回:type |
| 248 | out_err : |
| 249 | pr_warn_ratelimited("fanotify: failed to encode fid (fsid=%x.%x, type=%d, bytes=%d, err=%i)\n", val[0], val[1], type, bytes, err) |
| 252 | 释放内存 |
| 253 | ext_fh = NULL |
| 254 | fh_len等于0 |
| 256 | 返回:FILEID_INVALID |
| 名称 | 描述 |
|---|---|
| fanotify_alloc_event |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |