Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-28 17:19:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:invalidate_partition

Proto:int invalidate_partition(struct gendisk *disk, int partno)

Type:int

Parameter:

TypeParameterName
struct gendisk *disk
intpartno
1610  res = 0
1611  bdev = dget_disk - do bdget() by gendisk and partition number*@disk: gendisk of interest*@partno: partition number* Find partition @partno from @disk, do bdget() on it.* CONTEXT:* Don't care.* RETURNS:* Resulting block_device on success, NULL on failure.
1612  If bdev Then
1613  fsync_bdev(bdev)
1614  res = __invalidate_device(bdev, true)
1615  bdput(bdev)
1617  Return res
Caller
NameDescribe
del_gendisk
blk_drop_partitions