函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:snotify_link - new hardlink in 'inode' directory* Note: We have to pass also the linked inode ptr as some filesystems leave

函数原型:static inline void fsnotify_link(struct inode *dir, struct inode *inode, struct dentry *new_dentry)

返回类型:void

参数:

类型参数名称
struct inode *dir
struct inode *inode
struct dentry *new_dentry>d_inode NULL and instantiate inode pointer later
185  snotify_link_count - inode's link count changed
186  audit_inode_child(dir, >d_inode NULL and instantiate inode pointer later, a child being created )
188  fsnotify(dir, Subfile was created , inode, FSNOTIFY_EVENT_INODE, & d_name, 0)
调用者
名称描述
vfs_linkvfs_link - create a new link*@old_dentry: object to be linked*@dir: new parent*@new_dentry: where to create the new link*@delegated_inode: returns inode needing a delegation break* The caller must hold dir->i_mutex* If vfs_link discovers a delegation on