函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_parent

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

返回类型:struct dentry

参数:

类型参数名称
struct dentry *dentry
627  parent等于 parent directory
628  如果linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(dentry)则返回:NULL
630  如果此条件成立可能性大(为编译器优化)(spin_trylock( & d_lock))则返回:parent
632  返回:__lock_parent(dentry)
调用者
名称描述
dentry_killFinish off a dentry we've decided to kill.* Returns dentry requiring refcount drop, or NULL if we're done.
d_prune_aliasesTry to kill dentries associated with this inode.* WARNING: you must own a reference to inode.