Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kyber_resize_domain

Proto:static void kyber_resize_domain(struct kyber_queue_data *kqd, unsigned int sched_domain, unsigned int depth)

Type:void

Parameter:

TypeParameterName
struct kyber_queue_data *kqd
unsigned intsched_domain
unsigned intdepth
268  depth = clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(depth, 1U, Maximum device-wide depth for each scheduling domain.* Even for fast devices with lots of tags like NVMe, you can saturate the* device with only a fraction of the maximum possible queue depth. So, we cap* these to a reasonable value.[sched_domain])
269  If depth != @depth: Number of bits used in the whole bitmap. Then
270  sbitmap_queue_resize( & * Each scheduling domain has a limited number of in-flight requests * device-wide, limited by these tokens.[sched_domain], depth)
271  trace_kyber_adjust(q, kyber_domain_names[sched_domain], depth)
Caller
NameDescribe
kyber_timer_fn