Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rq_qos_wake_function

Proto:static int rq_qos_wake_function(struct wait_queue_entry *curr, unsigned int mode, int wake_flags, void *key)

Type:int

Parameter:

TypeParameterName
struct wait_queue_entry *curr
unsigned intmode
intwake_flags
void *key
215  data = 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.(curr, structrq_qos_wait_data, wq)
223  If Not cb(rqw, private_data) Then Return -1
226  got_token = true
227  smp_wmb()
228  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
229  wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running.
230  Return 1