函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We can't just wait for polled events to come to us, we have to actively* find and complete them.

函数原型:static void io_iopoll_reap_events(struct io_ring_ctx *ctx)

返回类型:void

参数:

类型参数名称
struct io_ring_ctx *ctx
1271  如果非flags按位与_context is polled 的值则返回
1274  mutex_lock( & uring_lock)
1275  当非链表为空循环
1276  nr_events等于0
1278  Poll for a minimum of 'min' events. Note that if min == 0 we consider that a* non-spinning poll check - we'll still enter the driver poll loop, but only* as a non-spinning completion check.
1284  cond_resched()
1286  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
io_ring_ctx_free
io_ring_ctx_wait_and_kill