Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\swait.c Create Date:2022-07-28 09:41:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The thing about the wake_up_state() return value; I think we can ignore it.* If for some reason it would return 0, that means the previously waiting* task is already running, so it will observe condition true (or has already).

Proto:void swake_up_locked(struct swait_queue_head *q)

Type:void

Parameter:

TypeParameterName
struct swait_queue_head *q
26  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
29  curr = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & task_list, typeof( * curr), task_list)
30  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.
31  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
Caller
NameDescribe
swake_up_one