Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Notify this dentry's parent about a child's events.

Proto:int __fsnotify_parent(const struct path *path, struct dentry *dentry, __u32 mask)

Type:int

Parameter:

TypeParameterName
const struct path *path
struct dentry *dentry
__u32mask
150  ret = 0
152  If Not dentry Then dentry = dentry
155  If Not ( protected by d_lock & DCACHE_FSNOTIFY_PARENT_WATCHED) Then Return 0
158  parent = dget_parent(dentry)
159  p_inode = Where the name belongs to - NULL is * negative
161  If Value for the false possibility is greater at compile time(!fsnotify_inode_watches_children(p_inode)) Then
162  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
163  Else if i_fsnotify_mask & mask & Events that can be reported to backends Then
168  mask |= This inode cares about things that happen to its children. Always set for* dnotify and inotify.
170  take_dentry_name_snapshot( & name, dentry)
171  If path Then ret = This is the main call to fsnotify. The VFS calls into hook specific functions* in linux/fsnotify.h. Those functions then in turn call here. Here will call* out to all of the registered fsnotify_group. Those groups can then use the
174  Else ret = This is the main call to fsnotify. The VFS calls into hook specific functions* in linux/fsnotify.h. Those functions then in turn call here. Here will call* out to all of the registered fsnotify_group. Those groups can then use the
177  release_dentry_name_snapshot( & name)
180  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
182  Return ret