函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-29 10:49:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:d_inode - resolve a user-given path to a specific inode

函数原型:static int inotify_find_inode(const char __user *dirname, struct path *path, unsigned int flags, __u64 mask)

返回类型:int

参数:

类型参数名称
const char __user *dirname
struct path *path
unsigned intflags
__u64mask
340  error等于user_path_at(Special value used to indicateopenat should use the currentworking directory. , dirname, flags, path)
341  如果error则返回:error
344  error等于de_permission - Check for access rights to a given inode*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)* Check for read/write/execute permissions on an inode
345  如果error
346  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
347  返回:error
349  error等于security_path_notify(path, mask, FSNOTIFY_OBJ_TYPE_INODE)
351  如果errorpath_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
354  返回:error
调用者
名称描述
SYSCALL_DEFINE3