函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dcache.h Create Date:2022-07-27 06:43:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:d_is_negative

函数原型:static inline bool d_is_negative(const struct dentry *dentry)

返回类型:bool

参数:

类型参数名称
const struct dentry *dentry
440  返回:d_is_miss(dentry)
调用者
名称描述
lookup_fast
may_deleteCheck whether we can remove a link victim from directory dir, check* whether the type of victim is right.* 1. We can't do it if dir is read-only (done in permission())* 2. We should have write and exec permissions on dir* 3
atomic_openAttempt to atomically look up, create and open a file from a negative* dentry
do_unlinkatMake sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O.
do_renameat2
d_lru_add
d_lru_del
d_lru_isolateThese can only be called under the global LRU lock, ie during the* callback for freeing the LRU list. "isolate" removes it from the* LRU lists entirely, while shrink_move moves it to the indicated* private list.
d_lru_shrink_move
d_is_positive
fsnotify_unlinksnotify_unlink - 'name' was unlinked* Caller must make sure that dentry->d_name is stable.
fsnotify_rmdirsnotify_rmdir - directory 'name' was removed* Caller must make sure that dentry->d_name is stable.