函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:disk_release

函数原型:static void disk_release(struct device *dev)

返回类型:void

参数:

类型参数名称
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  释放内存
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  如果queueblk_put_queue(queue)
1334  释放内存