Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__prepare_to_swait

Proto:static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait)

Type:void

Parameter:

TypeParameterName
struct swait_queue_head *q
struct swait_queue *wait
74  task = current process
75  If list_empty - tests whether a list is empty*@head: the list to test. Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
Caller
NameDescribe
prepare_to_swait_exclusive
prepare_to_swait_event