函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sq_to_td - return throtl_data the specified service queue belongs to*@sq: the throtl_service_queue of interest* A service_queue can be embedded in either a throtl_grp or throtl_data.* Determine the associated throtl_data accordingly and return it.

函数原型:static struct throtl_data *sq_to_td(struct throtl_service_queue *sq)

返回类型:struct throtl_data

参数:

类型参数名称
struct throtl_service_queue *sq
270  tg等于sq_to_tg - return the throl_grp the specified service queue belongs to*@sq: the throtl_service_queue of interest* Return the throtl_grp @sq belongs to. If @sq is the top-level one* embedded in throtl_data, %NULL is returned.
272  如果tg则返回: throtl_data this group belongs to
274  否则返回:container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(sq, structthrotl_data, service_queue)
调用者
名称描述
throtl_schedule_pending_timerCall with queue lock held
throtl_pending_timer_fn