函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:The inode to use as identifier when reporting fid depends on the event.* Report the modified directory inode on dirent modification events.* Report the "victim" inode otherwise.* For example:

函数原型:static struct inode *fanotify_fid_inode(struct inode *to_tell, unsigned int event_mask, const void *data, int data_type)

返回类型:struct inode

参数:

类型参数名称
struct inode *to_tell
unsigned intevent_mask
const void *data
intdata_type
270  如果event_mask按位与Directory entry modification events - reported only to directory* where entry is modified and not to a watching parent.* The watching parent may get an FS_ATTRIB|FS_EVENT_ON_CHILD event* when a directory entry inside a child subdir changes.则返回:to_tell
272  否则如果data_type恒等于FSNOTIFY_EVENT_INODE则返回:data
274  否则如果data_type恒等于FSNOTIFY_EVENT_PATH则返回:获得目录项的索引节点
276  返回:NULL
调用者
名称描述
fanotify_alloc_event