函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dentry_lru_isolate_shrink

函数原型:static enum lru_status dentry_lru_isolate_shrink(struct list_head *item, struct list_lru_one *lru, spinlock_t *lru_lock, void *arg)

返回类型:enum lru_status

参数:

类型参数名称
struct list_head *item
struct list_lru_one *lru
spinlock_t *lru_lock
void *arg
1210  freeable等于arg
1211  dentry等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(item, structdentry, d_lru)
1218  如果非spin_trylock( & d_lock)则返回:m cannot be locked, skip
1221  d_lru_shrink_move(lru, dentry, freeable)
1222  自旋锁解锁
1224  返回:m removed from list