函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fsnotify.h Create Date:2022-07-27 13:03:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:snotify_change - notify_change event. file was modified and/or metadata* was changed.

函数原型:static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
unsigned intia_valid
314  inode等于 Where the name belongs to - NULL is * negative
315  mask等于0
317  如果ia_valid按位与ATTR_UIDmask或等于Metadata changed
319  如果ia_valid按位与ATTR_GIDmask或等于Metadata changed
321  如果ia_valid按位与ATTR_SIZEmask或等于File was modified
325  如果ia_valid按位与ATTR_ATIME按位或ATTR_MTIME的值的值恒等于ATTR_ATIME按位或ATTR_MTIME的值则mask或等于Metadata changed
327  否则如果ia_valid按位与ATTR_ATIMEmask或等于File was accessed
329  否则如果ia_valid按位与ATTR_MTIMEmask或等于File was modified
332  如果ia_valid按位与Attribute flags. These should be or-ed together to figure out what* has been changed!mask或等于Metadata changed
335  如果mask
336  如果S_ISDIR(i_mode)则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)
调用者
名称描述
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