mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 13:04:03 +08:00
f31ecf671d
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->len The 'which', the idtype being queried/waited for. sqe->fd The 'pid' (or id) being waited for. sqe->file_index The 'options' being set. sqe->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 <axboe@kernel.dk>
13 lines
382 B
Makefile
13 lines
382 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for io_uring
|
|
|
|
obj-$(CONFIG_IO_URING) += io_uring.o xattr.o nop.o fs.o splice.o \
|
|
sync.o advise.o filetable.o \
|
|
openclose.o uring_cmd.o epoll.o \
|
|
statx.o net.o msg_ring.o timeout.o \
|
|
sqpoll.o fdinfo.o tctx.o poll.o \
|
|
cancel.o kbuf.o rsrc.o rw.o opdef.o \
|
|
notif.o waitid.o
|
|
obj-$(CONFIG_IO_WQ) += io-wq.o
|