函数逻辑报告

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

函数名称:copy_name

函数原型:static void copy_name(struct dentry *dentry, struct dentry *target)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
struct dentry *target
2777  struct external_name * old_name = NULL
2778  如果此条件成立可能性小(为编译器优化)(dname_external(dentry))则old_name等于external_name(dentry)
2780  如果此条件成立可能性小(为编译器优化)(dname_external(target))则
2781  atomic_inc( & count)
2782  d_name等于d_name
2783  否则
2784  memcpy( small names , name, len + 1)
2786  name等于 small names
2787  hash_len等于hash_len
2789  如果old_name此条件成立可能性大(为编译器优化)(atomic_dec_and_test( & count))则kfree_rcu() - kfree an object after a grace period(old_name, head)
调用者
名称描述
__d_move__d_move - move a dentry*@dentry: entry to move*@target: new dentry*@exchange: exchange the two dentries* Update the dcache to reflect the move of a file name