函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iolatency_pd_alloc

函数原型:static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp, struct request_queue *q, struct blkcg *blkcg)

返回类型:struct blkg_policy_data

参数:

类型参数名称
gfp_tgfp
struct request_queue *q
struct blkcg *blkcg
943  iolat等于根据内存节点分配内存
944  如果非iolat则返回:NULL
946  stats等于__alloc_percpu_gfp - allocate dynamic percpu area*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@gfp: allocation flags* Allocate zero-filled percpu area of @size bytes aligned at @align
948  如果非stats
949  释放内存
950  返回:NULL
952  返回:pd