函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ventfd_ctx_remove_wait_queue - Read the current counter and removes wait queue

函数原型:int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_entry_t *wait, __u64 *cnt)

返回类型:int

参数:

类型参数名称
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  如果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_wake_up_locked_poll( & wqh, EPOLLOUT)
213  spin_unlock_irqrestore( & lock, flags)
215  返回:如果cnt不等于0则0否则负EAGAIN