Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:26
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources

Proto:void dput(struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
842  When dentry cycle
843  might_sleep()
845  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
848  Return
852  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
855  spin_unlock( & d_lock)
856  Return
859  dentry = Finish off a dentry we've decided to kill.* Returns dentry requiring refcount drop, or NULL if we're done.
Caller
NameDescribe
cgroup1_get_tree
audit_get_ndGet path information necessary for adding watches.
audit_alloc_mark
SYSCALL_DEFINE1
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
securityfs_removesecurityfs_remove - removes a file or directory from the securityfs filesystem*@dentry: a pointer to a the dentry of the file or directory to be removed
inode_doinit_with_dentry
sel_make_boolsdeclaration for sel_write_load
sel_make_avc_files
sel_make_initcon_files
sel_make_perm_files
sel_make_class_dir_entries
sel_make_policycap
sel_make_dirdeclaration for sel_make_class_dirs
sel_fill_super
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.
dump_common_audit_datadump_common_audit_data - helper to dump common audit data*@a : common audit data
tomoyo_get_attributesmoyo_get_attributes - Revalidate "struct inode".*@obj: Pointer to "struct tomoyo_obj_info".* Returns nothing.
aafs_createaafs_create - create a dentry in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
aafs_removeaafs_remove - removes a file or directory from the apparmorfs filesystem*@dentry: dentry of the file/directory/symlink to removed.
aa_mk_null_file
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
path_putpath_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.
unlazy_childlazy_child - try to switch to ref-walk mode
path_put_conditional
path_to_nameidata
follow_upllow_up - Find the mountpoint of path's vfsmount* Given a path, find the mountpoint of its source file system
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()
path_parent_directory
lookup_dcacheThis looks up the name in dcache and possibly revalidates the found dentry.* NULL is returned if the dentry does not exist in the cache.
__lookup_hashParent directory has inode locked exclusive. This is one* and only case when ->lookup() gets called on non in-lookup* dentries - as the matter of fact, this only gets called* when directory is guaranteed to have no in-lookup children* at all.
lookup_fast
__lookup_slowFast lookup failed, do it the slow way
lookup_positive_unlockedLike lookup_one_len_unlocked(), except that it yields ERR_PTR(-ENOENT)* on negatives
path_pts
atomic_openAttempt to atomically look up, create and open a file from a negative* dentry
lookup_openLook up and maybe create and open the last component
vfs_tmpfile
do_tmpfile
filename_create
done_path_create
vfs_rmdir
do_rmdir
do_unlinkatMake sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O.
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
do_renameat2
dget_parent
d_prune_aliasesTry to kill dentries associated with this inode.* WARNING: you must own a reference to inode.
do_one_tree
d_invalidateinvalidate a dentry
__d_instantiate_anon
d_add_cid_add_ci - lookup or allocate new dentry with case-exact name*@inode: the inode case-insensitive lookup has found*@dentry: the negative dentry that was passed to the parent's lookup func*@name: the case-exact name to be associated with the returned
d_alloc_parallel
d_splice_aliassplice a disconnected dentry into the tree if one exists
cleanup_mnt
ksys_umountNow umount can handle mount points as well as block devices.* This is important for filesystems which use unnamed block devices.* We now support a flag for forced unmount like the other 'big iron'* unixes
dcache_dir_close
scan_positivesReturns an element of siblings' list.* We are looking for th positive after

; if* found, dentry is grabbed and returned to caller.* If no such element exists, NULL is returned.

dcache_dir_lseek
dcache_readdirDirectory is locked and all positive dentries in it are safe, since* for ramfs-type trees they can't go away without unlink() or rmdir(),* both impossible due to the lock on directory.
simple_unlink
simple_fill_superhe inodes created here are not hashed. If you use iunique to generate* unique inode values later for this filesystem, then you must take care* to pass it an appropriate max_reserved value to avoid collisions.
block_dump___mark_inode_dirty
__ns_get_path
fc_drop_locked
put_fs_contextput_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
__fsnotify_parentNotify this dentry's parent about a child's events.
fscrypt_d_revalidateValidate dentries in encrypted directories to make sure we aren't potentially* caching stale dentries after a key has been added.
fscrypt_file_openscrypt_file_open - prepare to open a possibly-encrypted regular file*@inode: the inode being opened*@filp: the struct file being set up* Currently, an encrypted regular file can only be opened if its encryption key
shrink_dcache_inodeTry to evict the inode's dentries from the dentry cache. If the inode is a* directory, then it can have at most one dentry; however, that dentry may be* pinned by child dentries, so first try to evict the children too.
load_misc_binaryhe loader itself
kill_node
bm_register_write/register
dquot_quota_on_mountThis function is used when filesystem needs to initialize quotas* during mount time.
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
mknod_ptmx
devpts_fill_super
devpts_pty_killdevpts_pty_kill -- remove inode form /dev/pts/*@inode: inode of the slave to be removed* This is an inverse operation of devpts_pty_new.