Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iocg_wake_fn

Proto:static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key)

Type:int

Parameter:

TypeParameterName
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  If vbudget < 0 Then Return -1
1128  iocg_commit_bio(iocg, bio, cost)
1135  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1136  committed = true
1138  default_wake_function(wq_entry, mode, flags, key)
1139  Return 0