Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ventfd_ctx_remove_wait_queue - Read the current counter and removes wait queue

Proto:int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_entry_t *wait, __u64 *cnt)

Type:int

Parameter:

TypeParameterName
struct eventfd_ctx *ctx
wait_queue_entry_t *wait
__u64 *cnt
208  spin_lock_irqsave( & lock, flags)
209  eventfd_ctx_do_read(ctx, cnt)
210  __remove_wait_queue( & wqh, wait)
211  If cnt != 0 && waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ Then wake_up_locked_poll( & wqh, EPOLLOUT)
213  spin_unlock_irqrestore( & lock, flags)
215  Return If cnt != 0 Then 0 Else -EAGAIN