函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tg_conf_updated

函数原型:static void tg_conf_updated(struct throtl_grp *tg, bool global)

返回类型:void

参数:

类型参数名称
struct throtl_grp *tg
boolglobal
1386  sq等于 this group's service queue
1390  hrotl_log - log debug message via blktrace*@sq: the service_queue being reported*@fmt: printf format string*@args: printf args* The messages are prefixed with "throtl BLKG_NAME" if @sq belongs to a* throtl_grp; otherwise, just "throtl".( & this group's service queue , "limit change rbps=%llu wbps=%llu riops=%u wiops=%u", tg_bps_limit(tg, generic data direction definitions ), tg_bps_limit(tg, WRITE), tg_iops_limit(tg, generic data direction definitions ), tg_iops_limit(tg, WRITE))
1402  lkg_for_each_descendant_pre - pre-order walk of a blkg's descendants*@d_blkg: loop cursor pointing to the current descendant*@pos_css: used for iteration*@p_blkg: target blkg to walk descendants of* Walk @c_blkg through the descendants of @p_blkg(blkg, pos_css, global ? root_blkg : tg_to_blkg(tg))
1404  this_tg等于blkg_to_tg(blkg)
1407  Set has_rules[] if @tg or any of its parents have limits configured.* This doesn't require walking up to the top of the hierarchy as the* parent's has_rules[] is guaranteed to be correct.
1409  如果非cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(io_cgrp_subsys)或非 all non-root blkcg_gq's are guaranteed to have access to parent 或非 all non-root blkcg_gq's are guaranteed to have access to parent 则继续下一循环
1412  parent_tg等于blkg_to_tg( all non-root blkcg_gq's are guaranteed to have access to parent )
1417  us 等于两数取小( us , us )
1419  us 等于两数取大( us , us )
1431  throtl_start_new_slice(tg, 0)
1432  throtl_start_new_slice(tg, 1)
1434  如果flags按位与 on parent's pending tree
1435  tg_update_disptime(tg)
1436  hrotl_schedule_next_dispatch - schedule the next dispatch cycle*@sq: the service_queue to schedule dispatch for*@force: force scheduling* Arm @sq->pending_timer so that the next dispatch cycle starts on the* dispatch time of the first pending child
调用者
名称描述
tg_set_conf
tg_set_limit