Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_part_info

Proto:static inline struct partition_meta_info *alloc_part_info(struct gendisk *disk)

Type:struct partition_meta_info

Parameter:

TypeParameterName
struct gendisk *disk
423  If disk Then Return kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
426  Return kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
Caller
NameDescribe
add_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.