函数逻辑报告

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

函数名称:swap_names

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

返回类型:void

参数:

类型参数名称
struct dentry *dentry
struct dentry *target
2734  如果此条件成立可能性小(为编译器优化)(dname_external(target))则
2740  否则
2745  memcpy( small names , name, len + 1)
2747  name等于name
2748  name等于 small names
2750  否则
2756  memcpy( small names , name, len + 1)
2758  name等于name
2759  name等于 small names
2760  否则
2766 i小于128 bytes sizeof(long)循环
2772  swap - swap values of @a and @b*@a: first value*@b: second value(hash_len, hash_len)
调用者
名称描述
__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