函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:allocate_partitions

函数原型:static struct parsed_partitions *allocate_partitions(struct gendisk *hd)

返回类型:struct parsed_partitions

参数:

类型参数名称
struct gendisk *hd
120  state等于分配内存并置零
121  如果非state则返回:NULL
124  nr等于disk_max_parts(hd)
125  parts等于vzalloc - allocate virtually contiguous memory with zero fill*@size: allocation size* Allocate enough pages to cover @size from the page level* allocator and map them into contiguous kernel virtual space
126  如果非parts
127  释放内存
128  返回:NULL
131  limit等于nr
133  返回:state
调用者
名称描述
check_partition