函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__d_instantiate_anon

函数原型:static struct dentry *__d_instantiate_anon(struct dentry *dentry, struct inode *inode, bool disconnected)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *dentry
struct inode *inode
booldisconnected
2006  security_d_instantiate(dentry, inode)
2007  加自旋锁
2008  res等于__d_find_any_alias(inode)
2009  如果res
2010  自旋锁解锁
2011  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
2012  转到:out_iput
2016  add_flags等于d_flags_for_inode(inode)
2018  如果disconnectedadd_flags或等于DCACHE_DISCONNECTED
2021  加自旋锁
2022  __d_set_inode_and_type(dentry, inode, add_flags)
2023  hlist_add_head( & de alias list , & i_dentry)
2024  如果非disconnected
2025  hlist_bl_lock( & s_roots)
2026  hlist_bl_add_head( & lookup hash list , & s_roots)
2027  hlist_bl_unlock( & s_roots)
2029  自旋锁解锁
2030  自旋锁解锁
2032  返回:dentry
2034  out_iput :
2035  放置一个索引节点
2036  返回:res
调用者
名称描述
d_instantiate_anon
__d_obtain_alias