函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:35:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:p1 and p2 should be directories on the same fs.

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

返回类型:struct dentry

参数:

类型参数名称
struct dentry *p1
struct dentry *p2
2805  如果p1恒等于p2
2806  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_PARENT)
2807  返回:NULL
2810  mutex_lock( & s_vfs_rename_mutex)
2812  p等于d_ancestor(p2, p1)
2813  如果p
2814  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_PARENT)
2815  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_CHILD)
2816  返回:p
2819  p等于d_ancestor(p1, p2)
2820  如果p
2821  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_PARENT)
2822  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_CHILD)
2823  返回:p
2826  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_PARENT)
2827  inode_lock_nested( Where the name belongs to - NULL is * negative , I_MUTEX_PARENT2)
2828  返回:NULL
调用者
名称描述
do_renameat2