Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:disk_release

Proto:static void disk_release(struct device *dev)

Type:void

Parameter:

TypeParameterName
struct device *dev
1325  disk = dev_to_disk(dev)
1327  lk_free_devt - free a dev_t*@devt: dev_t to free* Free @devt which was allocated using blk_alloc_devt().* CONTEXT:* Might sleep.
1328  disk_release_events(disk)
1329  kfree(random)
1330  disk_replace_part_tbl - replace disk->part_tbl in RCU-safe way*@disk: disk to replace part_tbl for*@new_ptbl: new part_tbl to install* Replace disk->part_tbl with @new_ptbl in RCU-safe way. The* original ptbl is freed using RCU callback.* LOCKING:
1331  hd_free_part( & part0)
1332  If queue Then blk_put_queue(queue)
1334  kfree(disk)