函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void path_get(const struct path *path)

返回类型:void

参数:

类型参数名称
const struct path *path
469  mntget(mnt)
470  获得目录项引用
调用者
名称描述
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