| Function report | 
| Source Code: fs\notify\fanotify\fanotify.c | Create Date:2022-07-28 20:18:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:fanotify_encode_fid
Proto:static int fanotify_encode_fid(struct fanotify_event *event, struct inode *inode, gfp_t gfp, __kernel_fsid_t *fsid)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | Return 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) | 
| 253 | ext_fh = NULL | 
| 254 | fh_len = 0 | 
| 256 | Return FILEID_INVALID | 
| Name | Describe | 
|---|---|
| fanotify_alloc_event | 
| 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 |