Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry | |
unsigned int | ia_valid |
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 |
Name | Describe |
---|---|
notify_change | y_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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |