函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void __fsnotify_update_child_dentry_flags(struct inode *inode)

返回类型:void

参数:

类型参数名称
struct inode *inode
113  如果非S_ISDIR(i_mode)则返回
117  watched等于fsnotify_inode_watches_children(inode)
119  加自旋锁
128  加自旋锁
130  如果非 Where the name belongs to - NULL is * negative 则继续下一循环
133  spin_lock_nested( & d_lock, DENTRY_D_LOCK_NESTED)
134  如果watched protected by d_lock 或等于DCACHE_FSNOTIFY_PARENT_WATCHED
136  否则 protected by d_lock 与等于DCACHE_FSNOTIFY_PARENT_WATCHED的反
138  自旋锁解锁
140  自旋锁解锁
142  自旋锁解锁
调用者
名称描述
__fsnotify_parentNotify this dentry's parent about a child's events.
fsnotify_recalc_maskCalculate 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.