函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iocg_wake_fn

函数原型:static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key)

返回类型:int

参数:

类型参数名称
struct wait_queue_entry *wq_entry
unsignedmode
intflags
void *key
1119  wait等于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.(wq_entry, structiocg_wait, wait)
1120  ctx等于key
1121  cost等于Scale @abs_cost to the inverse of @hw_inuse. The lower the hierarchical* weight, the more expensive each IO. Must round up.
1123  vbudget减等于cost
1125  如果vbudget小于0则返回:负1
1128  iocg_commit_bio(iocg, bio, cost)
1135  删除链表项并重新初始化
1136  committed = true
1138  default_wake_function(wq_entry, mode, flags, key)
1139  返回:0