Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We invalidate devt by assigning NULL pointer for devt in idr.

Proto:void blk_invalidate_devt(dev_t devt)

Type:void

Parameter:

TypeParameterName
dev_tdevt
540  If MAJOR(devt) == BLOCK_EXT_MAJOR Then
541  spin_lock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.)
542  dr_replace() - replace pointer for given ID
543  spin_unlock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.)
Caller
NameDescribe
del_gendisk
delete_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.