Skip to content

io_pgetevents

Implemented in Antinomie 0.7.0 · Syscall list

long io_pgetevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct __kernel_timespec *timeout, const struct __aio_sigset *sig);
Number (x86-64) 333
ABI common
Kernel entry point sys_io_pgetevents

This is the raw kernel prototype from the pinned Linux 6.12.94 schema, not the libc wrapper.

Like io_getevents with a nanosecond timeout and an atomic signal mask.

Name Type Meaning
ctx_id (arg0) aio_context_t AIO context handle.
min_nr (arg1) long Minimum number of events to wait for.
nr (arg2) long Number of items.
events (arg3) struct io_event * Pointer to an array of event structures, or an event mask.
timeout (arg4) struct __kernel_timespec * Timeout, as a pointer to a time structure or a value in the unit the call uses.
sig (arg5) const struct __aio_sigset * Signal number.

On success: the number of events returned.

In an Antinomie trace the Return column and the ret filter field show the raw kernel return value. On failure that is the negative errno, for example -2 for ENOENT, not the -1 plus errno that the libc wrapper gives. syscall.errno holds the positive errno and syscall.success is false.

Raw return Name Meaning
-4 EINTR The call was interrupted by a signal.

io_getevents(2) on man7.org

Coverage mark: Implemented. Every pointer argument has a capture rule in the pinned kernel patch and none of them records a “no decoder”, “address only” or “not observed” gap on any code path. Individual values can still be incomplete on a particular call; see the capture statuses.

Every call is recorded as an Entry record (the six argument words and the pointees copied at entry) and an Exit record (the return value and the pointees copied at exit).

Argument When How Recorded field key Condition
ctx_id (arg0) Entry raw scalar word args.0, args.ctx_id
min_nr (arg1) Entry raw scalar word args.1, args.min_nr
nr (arg2) Entry raw scalar word args.2, args.nr
events (arg3) Entry the pointer itself, as a raw word args.3, args.raw[3]
↳ pointee Exit array of io_event, count equal to the result, limited by nr (arg2) arg3.events result is greater than 0
timeout (arg4) Entry the pointer itself, as a raw word args.4, args.raw[4]
↳ pointee Entry structure timespec arg4.timeout the pointer is not NULL
sig (arg5) Entry the pointer itself, as a raw word args.5, args.raw[5]
↳ pointee Entry structure __aio_sigset (mask pointer and size) arg5.sigset the pointer is not NULL
↳ pointee Entry signal set the pack points to signal.mask the pack was read and its mask pointer is not NULL
  • Result: ret, syscall.errno, syscall.success, syscall.duration_ns.
  • Argument words: args.ctx_id (arg0), args.min_nr (arg1), args.nr (arg2), args.events (arg3), args.timeout (arg4), args.sig (arg5); args.0 to args.5 by position.
  • Structure timespec[2] behind timeout (arg4): args.timeout.<member> for tv_nsec, tv_sec.

See Syscall Trace filter for the full syntax.

For what the capture statuses mean, see Capture statuses. For what is never recorded, see Known gaps.