mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
Implement dmabuf backed registered buffers. To register them, the user
should specify IO_REGBUF_TYPE_DMABUF for the regitration and pass the
desired dmabuf fd and a file for which it should be registered.
>From there, it can be used with io_uring read/write requests
IORING_OP_{READ,WRITE}_FIXED) as normal. The requests should be issued
against the file specified during registration, and otherwise they'll be
failed. The user should also be prepared to handle spurious -EAGAIN by
reissuing the request.
Internally, dmabuf registered buffers is an optin feature for io_uring
request opcodes and they should pass a special flag on import to use it.
Suggested-by: David Wei <[email protected]>
Suggested-by: Vishal Verma <[email protected]>
Suggested-by: Tushar Gohad <[email protected]>
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://patch.msgid.link/4aa230df871ee275536f367087b44ebfebb88cc1.1791975048.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
30 lines
919 B
Makefile
30 lines
919 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for io_uring
|
|
|
|
ifdef CONFIG_GCOV_PROFILE_URING
|
|
GCOV_PROFILE := y
|
|
endif
|
|
|
|
obj-$(CONFIG_IO_URING) += io_uring.o opdef.o kbuf.o rsrc.o notif.o \
|
|
tctx.o filetable.o rw.o poll.o \
|
|
tw.o wait.o eventfd.o uring_cmd.o \
|
|
openclose.o sqpoll.o xattr.o nop.o \
|
|
fs.o splice.o sync.o msg_ring.o \
|
|
advise.o openclose.o statx.o timeout.o \
|
|
cancel.o waitid.o register.o \
|
|
truncate.o memmap.o alloc_cache.o \
|
|
query.o loop.o
|
|
|
|
obj-$(CONFIG_IO_URING_ZCRX) += zcrx.o
|
|
obj-$(CONFIG_IO_WQ) += io-wq.o
|
|
obj-$(CONFIG_FUTEX) += futex.o
|
|
obj-$(CONFIG_EPOLL) += epoll.o
|
|
obj-$(CONFIG_NET_RX_BUSY_POLL) += napi.o
|
|
obj-$(CONFIG_NET) += net.o cmd_net.o
|
|
obj-$(CONFIG_PROC_FS) += fdinfo.o
|
|
obj-$(CONFIG_IO_URING_MOCK_FILE) += mock_file.o
|
|
obj-$(CONFIG_IO_URING_BPF) += bpf_filter.o
|
|
obj-$(CONFIG_IO_URING_BPF_OPS) += bpf-ops.o
|
|
obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf.o
|