Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static struct throtl_data *sq_to_td(struct throtl_service_queue *sq)

Type:struct throtl_data

Parameter:

TypeParameterName
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  If tg Then Return throtl_data this group belongs to
274  Else Return 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)
Caller
NameDescribe
throtl_schedule_pending_timerCall with queue lock held
throtl_pending_timer_fn