函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kyber_insert_requests

函数原型:static void kyber_insert_requests(struct blk_mq_hw_ctx *hctx, struct list_head *rq_list, bool at_head)

返回类型:void

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
struct list_head *rq_list
boolat_head
590  khd等于@sched_data: Pointer owned by the IO scheduler attached to a request* queue. It's up to the IO scheduler how to use this pointer.
594  sched_domain等于kyber_sched_domain( op and common flags )
595  kcq等于kcqs[index_hw[@type: HCTX_TYPE_* flags. Type of hardware queue. ]]
596  head等于rq_list[sched_domain]
598  加自旋锁
599  如果at_head链表项移动到头部
601  否则链表项移动到尾部
603  Helpers equivalent to the operations in asm/bitops.h and linux/bitmap.h
605  blk_mq_sched_request_inserted(rq)
606  自旋锁解锁