函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_blocksize

函数原型:int set_blocksize(struct block_device *bdev, int size)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
intsize
124  如果size大于PAGE_SIZEsize小于512或非s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.则返回:负EINVAL
128  如果size小于bdev_logical_block_size(bdev)则返回:负EINVAL
132  如果bd_block_size不等于size
133  Write out and wait upon all the dirty data associated with a block* device via its mapping. Does not take the superblock lock.
134  bd_block_size等于size
135  i_blkbits等于assumes size > 256
136  Kill _all_ buffers and pagecache , dirty or not..
138  返回:0
调用者
名称描述
swsusp_checkswsusp_check - Check for swsusp signature in the resume device
claim_swapfile
SYSCALL_DEFINE2
sb_set_blocksize
swsusp_swap_checkswsusp_swap_check - check if the resume device is a swap device* and get its index (if so)* This is called before saving image