函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\genhd.h Create Date:2022-07-27 06:45:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_capacity

函数原型:static inline void set_capacity(struct gendisk *disk, sector_t size)

返回类型:void

参数:

类型参数名称
struct gendisk *disk
sector_tsize
480  * nr_sects is protected by sequence counter. One might extend a * partition while IO is happening to it and update of nr_sects * can be non-atomic on 32bit machines with 64bit sector_t.等于size
调用者
名称描述
del_gendisk
bdev_disk_changed