函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:12 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Look up the bh in this cpu's LRU. If it's there, move it to the head.
函数原型:static struct buffer_head *lookup_bh_lru(struct block_device *bdev, sector_t block, unsigned size)
返回类型:struct buffer_head
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
sector_t | block | |
unsigned | size |
1297 | struct buffer_head * ret = NULL |
1300 | check_irqs_on() |
1301 | bh_lru_lock() |
1303 | bh等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(bhs[i]) |
1305 | 如果bh且 start block number 恒等于block且b_bdev恒等于bdev且 size of mapping 恒等于size则 |
1320 | bh_lru_unlock() |
1321 | 返回:ret |
名称 | 描述 |
---|---|
__find_get_block | Perform a pagecache lookup for the matching buffer. If it's there, refresh* it in the LRU and mark it as accessed. If it is not present then return* NULL |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |