Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\mark.c Create Date:2022-07-28 20:16:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Calculate mask of events for a list of marks. The caller must make sure* connector and connector->obj cannot disappear under us. Callers achieve* this by holding a mark->lock or mark->group->mark_mutex for a mark on this* list.

Proto:void fsnotify_recalc_mask(struct fsnotify_mark_connector *conn)

Type:void

Parameter:

TypeParameterName
struct fsnotify_mark_connector *conn
143  If Not conn Then Return
146  spin_lock( & lock)
147  __fsnotify_recalc_mask(conn)
148  spin_unlock( & lock)
149  If Type of object [lock] == FSNOTIFY_OBJ_TYPE_INODE Then Given an inode, first check if we care what happens to our children. Inotify* and dnotify both tell their parents about events. If we care about any event* on a child we run all of our children and set a dentry flag saying that the* parent cares
Caller
NameDescribe
fsnotify_add_mark_lockedAttach an initialized mark to a given group and fs object.* These marks may be used for the fsnotify backend to determine which* event types should be delivered to which group.
dnotify_recalc_inode_maskWhen a process starts or stops watching an inode the set of events which* dnotify cares about for that inode may change. This function runs the* list of everything receiving dnotify events about this directory and calculates* the set of all those events
inotify_update_existing_watch
fanotify_remove_mark
fanotify_add_mark