Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:30
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:struct dentry *d_ancestor(struct dentry *p1, struct dentry *p2)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *p1
struct dentry *p2
2932  When Not linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(p) cycle
2933  If parent directory == p1 Then Return p
2936  Return NULL
Caller
NameDescribe
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_aliassplice a disconnected dentry into the tree if one exists
is_subdiris new dentry a subdirectory of old_dentry