函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hrotl_peek_queued - peek the first bio on a qnode list*@queued: the qnode list to peek

函数原型:static struct bio *throtl_peek_queued(struct list_head *queued)

返回类型:struct bio

参数:

类型参数名称
struct list_head *queued
426  qn等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(queued, structthrotl_qnode, node)
429  如果链表为空则返回:NULL
432  bio等于bio_list_peek( & queued bios )
433  WARN_ON_ONCE(!bio)
434  返回:bio
调用者
名称描述
tg_may_dispatchReturns whether one can dispatch a bio or not. Also returns approx number* of jiffies to wait before this bio is with-in IO rate and can be dispatched
tg_update_disptime
throtl_dispatch_tg
tg_drain_biosDispatch all bios from all children tg's queued on @parent_sq. On* return, @parent_sq is guaranteed to not have any active children tg's* and all bios from previously active tg's are on @parent_sq->bio_lists[].