函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void fsnotify_recalc_mask(struct fsnotify_mark_connector *conn)

返回类型:void

参数:

类型参数名称
struct fsnotify_mark_connector *conn
143  如果非conn则返回
146  加自旋锁
147  __fsnotify_recalc_mask(conn)
148  自旋锁解锁
149  如果 Type of object [lock] 恒等于FSNOTIFY_OBJ_TYPE_INODEGiven 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
调用者
名称描述
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