Function report |
Source Code:fs\io_uring.c |
Create Date:2022-07-28 20:22:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Wait 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.
Proto:static int io_cqring_wait(struct io_ring_ctx *ctx, int min_events, const sigset_t __user *sig, size_t sigsz)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct io_ring_ctx * | ctx | |
int | min_events | |
const sigset_t __user * | sig | |
size_t | sigsz |
4025 | struct io_wait_queue iowq = {wq = {private = current process, func = io_wake_function, entry = Simple doubly linked list implementation(entry), }, ctx = ctx, to_wait = min_events, } |
4035 | ret = 0 |
4037 | If io_cqring_events(ctx, false) >= min_events Then Return 0 |
4040 | If sig Then |
4042 | If in_compat_syscall() Then ret = set_compat_user_sigmask((constcompat_sigset_t__user * )sig, sigsz) |
4045 | Else ret = The api helps set app-provided sigmasks |
4053 | nr_timeouts = atomic_read( & cq_timeouts) |
4055 | Do |
4056 | prepare_to_wait_exclusive( & wait, & wq, TASK_INTERRUPTIBLE) |
4058 | If io_should_wake( & iowq, false) Then Break |
4060 | schedule() |
4061 | If signal_pending(current process) Then |
4065 | When 1 cycle |
4068 | restore_saved_sigmask_unless(ret == - EINTR) |
Name | Describe |
---|---|
SYSCALL_DEFINE6 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |