函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called by mount code to set a mountpoint and check if the mountpoint is* reachable (e.g. NFS can unhash a directory dentry and then the complete* subtree can become unreachable).* Only one of d_invalidate() and d_set_mounted() must succeed. For

函数原型:int d_set_mounted(struct dentry *dentry)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
1425  ret等于负ENOENT
1426  当前CPU负责更新时间
1427  以非linux/include/linux/dcache.h* Dirent cache data structures* (C) Copyright 1997 Thomas Schoebel-Theuer,* with heavy changes by Linus Torvalds(p)循环
1429  加自旋锁
1432  转到:out
1434  自旋锁解锁
1436  加自旋锁
1437  如果非d_unlinked(dentry)则
1438  ret等于负EBUSY
1439  如果非d_mountpoint(dentry)则
1441  ret等于0
1444  自旋锁解锁
1445  out :
1446  write_sequnlock( & rename_lock)
1447  返回:ret
调用者
名称描述
get_mountpoint