Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:path_get - get a reference to a path*@path: path to get the reference to* Given a path increment the reference count to the dentry and the vfsmount.

Proto:void path_get(const struct path *path)

Type:void

Parameter:

TypeParameterName
const struct path *path
469  mntget(mnt)
470  get a reference to a dentry
Caller
NameDescribe
alloc_file_clone
nd_jump_root
path_initmust be paired with terminate_walk()
current_chrooted
set_fs_rootReplace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.* It can block.
set_fs_pwdReplace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.* It can block.
chroot_fs_refs
copy_fs_struct
fanotify_alloc_event
fanotify_find_path
devpts_mntgetTry to find a suitable devpts filesystem. We support the following* scenarios:* - The ptmx device node is located in the same directory as the devpts* mount where the pts device nodes are located.* This is e
devpts_acquire
alloc_dcookie