函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d_exact_alias - find and hash an exact unhashed alias*@entry: dentry to add*@inode: The inode to go with this dentry* If an unhashed dentry with the same name/parent and desired* inode already exists, hash and return it. Otherwise, return* NULL.

函数原型:struct dentry *d_exact_alias(struct dentry *entry, struct inode *inode)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *entry
struct inode *inode
2700  hash等于hash
2702  加自旋锁
2709  如果hash不等于hash则继续下一循环
2711  如果 parent directory 不等于 parent directory 则继续下一循环
2713  如果非d_same_name(alias, parent directory , & d_name)则继续下一循环
2715  加自旋锁
2716  如果非目录项存在于哈希中
2717  自旋锁解锁
2718  alias = NULL
2719  否则
2720  This must be called with d_lock held
2721  __d_rehash(alias)
2722  自旋锁解锁
2724  自旋锁解锁
2725  返回:alias
2727  自旋锁解锁
2728  返回:NULL