函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:13 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__getblk_gfp() will locate (and, if necessary, create) the buffer_head* which corresponds to the passed block_device, block and size. The* returned buffer has its reference count incremented.* __getblk_gfp() will lock up the machine if grow_dev_page's
函数原型:struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block, unsigned size, gfp_t gfp)
返回类型:struct buffer_head
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
sector_t | block | |
unsigned | size | |
gfp_t | gfp |
1358 | bh等于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 |
1360 | might_sleep() |
1363 | 返回:bh |
名称 | 描述 |
---|---|
__bread_gfp | __bread_gfp() - reads a specified block and returns the bh*@bdev: the block_device to read from*@block: number of block*@size: size (in bytes) to read*@gfp: page allocation flag* Reads a specified block, and returns buffer head that contains it |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |