Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\genhd.h Create Date:2022-07-28 05:44:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hd_struct_kill

Proto:static inline void hd_struct_kill(struct hd_struct *part)

Type:void

Parameter:

TypeParameterName
struct hd_struct *part
717  percpu_ref_kill - drop the initial ref*@ref: percpu_ref to kill* Must be used to drop the initial ref on a percpu refcount; must be called* precisely once before shutdown.* Switches @ref into atomic mode before gathering up the percpu counters
Caller
NameDescribe
delete_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.