函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\wait.c Create Date:2022-07-27 10:41:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:prepare_to_wait_exclusive

函数原型:void prepare_to_wait_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state)

返回类型:void

参数:

类型参数名称
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  如果链表为空__add_wait_queue_entry_tail(wq_head, wq_entry)
261  set_current_state(state)
262  spin_unlock_irqrestore( & lock, flags)
调用者
名称描述
__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
__cancel_work_timer
rq_qos_waitq_qos_wait - throttle on a rqw if we need to*@rqw: rqw to throttle on*@private_data: caller provided specific data*@acquire_inflight_cb: inc the rqw->inflight counter if we can*@cleanup_cb: the callback to cleanup in case we race with a waker
io_cqring_waitWait until events become available, if we don't already have some. The* application must reap them itself, as they reside on the shared cq ring.