Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:09 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__getblk_slow
Proto:static struct buffer_head *__getblk_slow(struct block_device *bdev, sector_t block, unsigned size, gfp_t gfp)
Type:struct buffer_head
Parameter:
Type | Parameter | Name |
---|---|---|
struct block_device * | bdev | |
sector_t | block | |
unsigned | size | |
gfp_t | gfp |
1066 | If Value for the false possibility is greater at compile time(size & (bdev_logical_block_size(bdev) - 1) || (size < 512 || size > PAGE_SIZE)) Then |
1073 | dump_stack() |
1074 | Return NULL |
1077 | cycle |
1081 | 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 |
1085 | ret = Create buffers for the specified block device block's page. If* that page was dirty, the buffers are set dirty also. |
1086 | If ret < 0 Then Return NULL |
Name | Describe |
---|---|
__getblk_gfp | __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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |