Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prepare_to_wait_event

Proto:long prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state)

Type:long

Parameter:

TypeParameterName
struct wait_queue_head *wq_head
struct wait_queue_entry *wq_entry
intstate
278  ret = 0
280  spin_lock_irqsave( & lock, flags)
281  If signal_pending_state(state, current process) Then
294  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
295  ret = -These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.
296  Else
303  set_current_state(state)
305  spin_unlock_irqrestore( & lock, flags)
307  Return ret