Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fsnotify.h Create Date:2022-07-28 11:57:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:snotify_change - notify_change event. file was modified and/or metadata* was changed.

Proto:static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
unsigned intia_valid
314  inode = Where the name belongs to - NULL is * negative
315  mask = 0
317  If ia_valid & ATTR_UID Then mask |= Metadata changed
319  If ia_valid & ATTR_GID Then mask |= Metadata changed
321  If ia_valid & ATTR_SIZE Then mask |= File was modified
325  If (ia_valid & (ATTR_ATIME | ATTR_MTIME)) == (ATTR_ATIME | ATTR_MTIME) Then mask |= Metadata changed
327  Else if ia_valid & ATTR_ATIME Then mask |= File was accessed
329  Else if ia_valid & ATTR_MTIME Then mask |= File was modified
332  If ia_valid & Attribute flags. These should be or-ed together to figure out what* has been changed! Then mask |= Metadata changed
335  If mask Then
336  If S_ISDIR(i_mode) Then mask |= vent occurred against dir
339  Notify this dentry's parent about a child's events.
340  fsnotify(inode, mask, inode, FSNOTIFY_EVENT_INODE, NULL, 0)
Caller
NameDescribe
notify_changey_change - modify attributes of a filesytem object*@dentry: object affected*@attr: new attributes*@delegated_inode: returns inode, if the inode is delegated* The caller must hold the i_mutex on the affected object