Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lk_free_devt - free a dev_t*@devt: dev_t to free* Free @devt which was allocated using blk_alloc_devt().* CONTEXT:* Might sleep.

Proto:void blk_free_devt(dev_t devt)

Type:void

Parameter:

TypeParameterName
dev_tdevt
525  If devt == MKDEV(0, 0) Then Return
528  If MAJOR(devt) == BLOCK_EXT_MAJOR Then
529  spin_lock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.)
530  dr_remove() - Remove an ID from the IDR
531  spin_unlock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.)
Caller
NameDescribe
disk_release
part_release