Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\kyber-iosched.c Create Date:2022-07-28 17:52:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kyber_insert_requests

Proto:static void kyber_insert_requests(struct blk_mq_hw_ctx *hctx, struct list_head *rq_list, bool at_head)

Type:void

Parameter:

TypeParameterName
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  spin_lock( & Used to ensure operations on rq_list and kcq_map to be an atmoic one.* Also protect the rqs on rq_list when merge.)
599  If at_head Then list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
601  Else list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
603  Helpers equivalent to the operations in asm/bitops.h and linux/bitmap.h
605  blk_mq_sched_request_inserted(rq)
606  spin_unlock( & Used to ensure operations on rq_list and kcq_map to be an atmoic one.* Also protect the rqs on rq_list when merge.)