Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prepare_to_wait_exclusive

Proto:void prepare_to_wait_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state)

Type:void

Parameter:

TypeParameterName
struct wait_queue_head *wq_head
struct wait_queue_entry *wq_entry
intstate
257  flags |= wait_queue_entry::flags
258  spin_lock_irqsave( & lock, flags)
259  If list_empty - tests whether a list is empty*@head: the list to test. Then __add_wait_queue_entry_tail(wq_head, wq_entry)
261  set_current_state(state)
262  spin_unlock_irqrestore( & lock, flags)
Caller
NameDescribe
__wait_on_bit_lock
get_unlocked_entryLook up entry in page cache, wait for it to become unlocked if it* is a DAX entry and return it. The caller must subsequently call* put_unlocked_entry() if it did not lock the entry or dax_unlock_entry()* if it did
sbitmap_prepare_to_wait