函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:invalidate_partition

函数原型:int invalidate_partition(struct gendisk *disk, int partno)

返回类型:int

参数:

类型参数名称
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  如果bdev
1613  fsync_bdev(bdev)
1614  res等于__invalidate_device(bdev, true)
1615  bdput(bdev)
1617  返回:res
调用者
名称描述
del_gendisk
blk_drop_partitions