Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name: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.

Proto:static __kernel_fsid_t fanotify_get_fsid(struct fsnotify_iter_info *iter_info)

Type:__kernel_fsid_t

Parameter:

TypeParameterName
struct fsnotify_iter_info *iter_info
349  __kernel_fsid_t fsid = {}
354  If Not fsnotify_iter_should_report_type(iter_info, type) Then Continue
357  conn = READ_ONCE( Head of list of marks for an object [mark ref] )
359  If Not conn Then Continue
361  If Not ( flags [lock] & FSNOTIFY_CONN_FLAG_HAS_FSID) Then Continue
364  smp_rmb()
365  fsid = fsid of filesystem containing object
366  If WARN_ON_ONCE(!val[0] && !val[1]) Then Continue
368  Return fsid
371  Return fsid
Caller
NameDescribe
fanotify_handle_event