函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_mq_first_mapped_cpu

函数原型:static inline int blk_mq_first_mapped_cpu(struct blk_mq_hw_ctx *hctx)

返回类型:int

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
1374  cpu等于cpumask_first_and - return the first cpu from *srcp1 & *srcp2*@src1p: the first input*@src2p: the second input* Returns >= nr_cpu_ids if no cpus set in both. See also cpumask_next_and().(@cpumask: Map of available CPUs where this hctx can run. , cpu_online_mask)
1376  如果cpu大于等于CPU数量cpu等于Uniprocessor. Assume all masks are "1".
1378  返回:cpu
调用者
名称描述
blk_mq_hctx_next_cpuIt'd be great if the workqueue API had a way to pass* in a mask and had some smarts for more clever placement.* For now we just round-robin here, switching for every* BLK_MQ_CPU_WORK_BATCH queued items.
blk_mq_map_swqueue