函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:获得目录项引用

函数原型:static inline struct dentry *dget(struct dentry *dentry)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *dentry
320  如果dentry无条件增量引用计数
322  返回:dentry
调用者
名称描述
bpf_dentry_finalize
mqueue_create_attr
securityfs_create_dentrysecurityfs_create_dentry - create a dentry in the securityfs filesystem*@name: a pointer to a string containing the name of the file to create.*@mode: the permission that the file should have*@parent: a pointer to the parent dentry for this file
inode_doinit_with_dentry
smack_d_instantiatesmack_d_instantiate - Make sure the blob is correct on an inode*@opt_dentry: dentry where inode will be attached*@inode: the object* Set the inode's security blob if it hasn't been done already.
__aafs_setup_d_inode__aafs_setup_d_inode - basic inode setup for apparmorfs*@dir: parent directory for the dentry*@dentry: dentry we are seting the inode up for*@mode: permissions the file should have*@data: data to store on inode
__aafs_ns_mkdirRequires: @ns->lock held
aa_mk_null_file
policy_get_link
vfs_get_supervfs_get_super - Get a superblock with a search key set in s_fs_info.*@fc: The filesystem context holding the parameters*@keying: How to distinguish superblocks*@fill_super: Helper to initialise a new superblock
get_tree_bdevget_tree_bdev - Get a superblock based on a single block device*@fc: The filesystem context holding the parameters*@fill_super: Helper to initialise a new superblock
mount_bdev
mount_nodev
mount_single
path_getpath_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.
follow_upllow_up - Find the mountpoint of path's vfsmount* Given a path, find the mountpoint of its source file system
follow_automountPerform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with.
follow_managedHandle a dentry that is managed in some way.* - Flagged for transit management (autofs)* - Flagged as mountpoint* - Flagged as automount point* This may only be called in refwalk mode.* On success path->dentry is known positive.
follow_down_one
follow_downFollow down to the covering mount currently visible to userspace. At each* point, the filesystem owning that dentry may be queried as to whether the* caller is permitted to proceed or not.
follow_mountSkip to top of mountpoint pile in refwalk mode for follow_dotdot()
handle_lookup_down
vfs_rmdir
vfs_renamevfs_rename - rename a filesystem object*@old_dir: parent of source*@old_dentry: source*@new_dir: parent of destination*@new_dentry: destination*@delegated_inode: returns an inode needing a delegation break*@flags: rename flags
shrink_dcache_for_umountdestroy the dentries attached to a superblock on unmounting
d_alloc_cursor
d_splice_alias链接目录项
get_mountpoint
vfs_create_mountvfs_create_mount - Create a mount for a configured superblock*@fc: The configuration context with the superblock attached* Create a mount to an already configured superblock. If necessary, the* caller should invoke vfs_get_tree() before calling this.
clone_mnt
lock_mount
SYSCALL_DEFINE3Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor.
simple_link
alloc_fs_contextalloc_fs_context - Create a filesystem context.*@fs_type: The filesystem type.*@reference: The dentry from which this one derives (or NULL)*@sb_flags: Filesystem/superblock flags (SB_*)*@sb_flags_mask: Applicable members of @sb_flags
load_misc_binaryhe loader itself
bm_register_write/register
ramfs_mknodSMP-safe
ramfs_symlink