Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-28 20:17:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d_inode - resolve a user-given path to a specific inode

Proto:static int inotify_find_inode(const char __user *dirname, struct path *path, unsigned int flags, __u64 mask)

Type:int

Parameter:

TypeParameterName
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  If error Then Return 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  If error Then
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  Return error
349  error = security_path_notify(path, mask, FSNOTIFY_OBJ_TYPE_INODE)
351  If error Then 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.
354  Return error
Caller
NameDescribe
SYSCALL_DEFINE3