函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\fdinfo.c Create Date:2022-07-29 10:48:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fanotify_fdinfo

函数原型:static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct fsnotify_mark *mark
114  mflags等于0
117  如果 flags [mark->lock] 按位与FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFYmflags或等于FAN_MARK_IGNORED_SURV_MODIFY
120  如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_INODE
121  inode等于igrab(fsnotify_conn_inode( Head of list of marks for an object [mark ref] ))
122  如果非inode则返回
124  seq_printf(m, "fanotify ino:%lx sdev:%x mflags:%x mask:%x ignored_mask:%x ", Stat data, not accessed from path walking , s_dev, mflags, Mask this mark is for [mark->lock, group->mark_mutex] , Events types to ignore [mark->lock, group->mark_mutex] )
127  show_mark_fhandle(m, inode)
128  seq_putc(m, '\n')
129  放置一个索引节点
130  否则如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_VFSMOUNT
131  mnt等于fsnotify_conn_mount( Head of list of marks for an object [mark ref] )
133  seq_printf(m, "fanotify mnt_id:%x mflags:%x mask:%x ignored_mask:%x\n", mount identifier , mflags, Mask this mark is for [mark->lock, group->mark_mutex] , Events types to ignore [mark->lock, group->mark_mutex] )
135  否则如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_SB
136  sb等于fsnotify_conn_sb( Head of list of marks for an object [mark ref] )
138  seq_printf(m, "fanotify sdev:%x mflags:%x mask:%x ignored_mask:%x\n", s_dev, mflags, Mask this mark is for [mark->lock, group->mark_mutex] , Events types to ignore [mark->lock, group->mark_mutex] )