<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/io_uring/waitid.h, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2023-09-21T18:04:45+00:00</updated>
<entry>
<title>io_uring: add IORING_OP_WAITID support</title>
<updated>2023-09-21T18:04:45+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@kernel.dk</email>
</author>
<published>2023-07-10T22:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f31ecf671ddc498f20219453395794ff2383e06b'/>
<id>urn:sha1:f31ecf671ddc498f20219453395794ff2383e06b</id>
<content type='text'>
This adds support for an async version of waitid(2), in a fully async
version. If an event isn't immediately available, wait for a callback
to trigger a retry.

The format of the sqe is as follows:

sqe-&gt;len		The 'which', the idtype being queried/waited for.
sqe-&gt;fd			The 'pid' (or id) being waited for.
sqe-&gt;file_index		The 'options' being set.
sqe-&gt;addr2		A pointer to siginfo_t, if any, being filled in.

buf_index, add3, and waitid_flags are reserved/unused for now.
waitid_flags will be used for options for this request type. One
interesting use case may be to add multi-shot support, so that the
request stays armed and posts a notification every time a monitored
process state change occurs.

Note that this does not support rusage, on Arnd's recommendation.

See the waitid(2) man page for details on the arguments.

Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
