函数逻辑报告

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_set_d_op

函数原型:void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
const struct dentry_operations *op
1837  WARN_ON_ONCE(d_op)
1838  WARN_ON_ONCE( protected by d_lock & (d_flags entries | DCACHE_OP_COMPARE | DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE | DCACHE_OP_DELETE | DCACHE_OP_REAL))
1844  d_op等于op
1845  如果非op则返回
1847  如果d_hash protected by d_lock 或等于d_flags entries
1849  如果d_compare protected by d_lock 或等于DCACHE_OP_COMPARE
1851  如果d_revalidate protected by d_lock 或等于DCACHE_OP_REVALIDATE
1853  如果d_weak_revalidate protected by d_lock 或等于DCACHE_OP_WEAK_REVALIDATE
1855  如果d_delete protected by d_lock 或等于DCACHE_OP_DELETE
1857  如果d_prune protected by d_lock 或等于DCACHE_OP_PRUNE
1859  如果d_real protected by d_lock 或等于DCACHE_OP_REAL
调用者
名称描述
__d_alloc__d_alloc - allocate a dcache entry*@sb: filesystem it will belong to*@name: qstr of the name* Allocates a dentry. It returns %NULL if there is insufficient memory* available. On a success the dentry is returned. The name passed in is
simple_lookupLookup the data. This is trivial - if the dentry didn't already* exist, we know it is negative. Set d_op to delete negative dentries.
__fscrypt_prepare_lookup