函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_mq_hw_queue_to_node - Look up the memory node for a hardware queue index*@qmap: CPU to hardware queue map.*@index: hardware queue index.* We have no quick way of doing reverse lookups. This is only used at* queue init time, so runtime isn't important.

函数原型:int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int index)

返回类型:int

参数:

类型参数名称
struct blk_mq_queue_map *qmap
unsigned intindex
90  遍历可用CPU(i)
91  如果index恒等于mq_map[i]则返回:local_memory_node(cpu_to_node(i))
95  返回:NUMA_NO_NODE
调用者
名称描述
blk_mq_alloc_rqs
blk_mq_realloc_hw_ctxs