函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We invalidate devt by assigning NULL pointer for devt in idr.

函数原型:void blk_invalidate_devt(dev_t devt)

返回类型:void

参数:

类型参数名称
dev_tdevt
540  如果MAJOR(devt)恒等于BLOCK_EXT_MAJOR
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.)
调用者
名称描述
del_gendisk
delete_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.