函数逻辑报告

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_init_blocksize

函数原型:static void set_init_blocksize(struct block_device *bdev)

返回类型:void

参数:

类型参数名称
struct block_device *bdev
109  bsize等于bdev_logical_block_size(bdev)
110  size等于NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they
112 bsize小于PAGE_SIZE循环
113  如果size按位与bsize退出
115  bsize左移等于1位
117  bd_block_size等于bsize
118  i_blkbits等于assumes size > 256
调用者
名称描述
__blkdev_getd_mutex locking:* mutex_lock(part->bd_mutex)* mutex_lock_nested(whole->bd_mutex, 1)