Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:08
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static int grow_buffers(struct block_device *bdev, sector_t block, int size, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
sector_tblock
intsize
gfp_tgfp
1038  sizebits = -1
1039  Do
1040  sizebits++
1041  When size << sizebits < PAGE_SIZE cycle
1043  index = block >> sizebits
1049  If Value for the false possibility is greater at compile time(index != block >> sizebits) Then
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  Return -EIO
1058  Return Create the page-cache page that contains the requested block.* This is used purely for blockdev mappings.
Caller
NameDescribe
__getblk_slow