函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get cached fsid of the filesystem containing the object from any connector.* All connectors are supposed to have the same fsid, but we do not verify that* here.

函数原型:static __kernel_fsid_t fanotify_get_fsid(struct fsnotify_iter_info *iter_info)

返回类型:__kernel_fsid_t

参数:

类型参数名称
struct fsnotify_iter_info *iter_info
349  __kernel_fsid_t fsid = {}
354  如果非fsnotify_iter_should_report_type(iter_info, type)则继续下一循环
357  conn等于READ_ONCE( Head of list of marks for an object [mark ref] )
359  如果非conn则继续下一循环
361  如果非 flags [lock] 按位与FSNOTIFY_CONN_FLAG_HAS_FSID的值则继续下一循环
364  smp_rmb()
365  fsid等于 fsid of filesystem containing object
366  如果WARN_ON_ONCE(!val[0] && !val[1])则继续下一循环
368  返回:fsid
371  返回:fsid
调用者
名称描述
fanotify_handle_event