函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d_ancestor - search for an ancestor*@p1: ancestor dentry*@p2: child dentry* Returns the ancestor dentry of p2 which is a child of p1, if p1 is* an ancestor of p2, else NULL.

函数原型:struct dentry *d_ancestor(struct dentry *p1, struct dentry *p2)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *p1
struct dentry *p2
2932  以非linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(p)循环
2933  如果 parent directory 恒等于p1则返回:p
2936  返回:NULL
调用者
名称描述
lock_renamep1 and p2 should be directories on the same fs.
__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
d_splice_alias链接目录项
is_subdir是子目录