函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kyber_resize_domain

函数原型:static void kyber_resize_domain(struct kyber_queue_data *kqd, unsigned int sched_domain, unsigned int depth)

返回类型:void

参数:

类型参数名称
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  如果depth不等于@depth: Number of bits used in the whole bitmap.
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)
调用者
名称描述
kyber_timer_fn