函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:validate_bh_lrus() is called rarely - but not only at unmount.* This doesn't race because it runs in each cpu either in irq* or with preempt disabled.

函数原型:static void invalidate_bh_lru(void *arg)

返回类型:void

参数:

类型参数名称
void *arg
1411  b等于Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(bh_lrus)
1414 i小于Per-cpu buffer LRU implementation. To reduce the cost of __find_get_block().* The bhs[] array is sorted - newest buffer is at bhs[0]. Buffers have their* refcount elevated by one when they're in an LRU. A buffer can only appear循环
1415  brelse(bhs[i])
1416  bhs[i] = NULL
1418  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(bh_lrus)