Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:47
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_first_mapped_cpu

Proto:static inline int blk_mq_first_mapped_cpu(struct blk_mq_hw_ctx *hctx)

Type:int

Parameter:

TypeParameterName
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  If cpu >= Setup number of possible processor ids Then cpu = Uniprocessor. Assume all masks are "1".
1378  Return cpu
Caller
NameDescribe
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