Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\genhd.h Create Date:2022-07-28 05:44:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_capacity

Proto:static inline void set_capacity(struct gendisk *disk, sector_t size)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
del_gendisk
bdev_disk_changed