函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create buffers for the specified block device block's page. If* that page was dirty, the buffers are set dirty also.

函数原型:static int grow_buffers(struct block_device *bdev, sector_t block, int size, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
sector_tblock
intsize
gfp_tgfp
1038  sizebits等于负1
1039  循环
1040  sizebits自加
1041 size左移sizebits位小于PAGE_SIZE循环
1043  index等于block右移sizebits
1049  如果此条件成立可能性小(为编译器优化)(index != block >> sizebits)则
1050  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
1054  返回:负EIO
1058  返回:Create the page-cache page that contains the requested block.* This is used purely for blockdev mappings.
调用者
名称描述
__getblk_slow