From 689719e0a1f139e28e57a4df334d5fde354b3379 Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 20 Oct 2026 14:11:31 -0400 Subject: config parse cli arguments --- include/kpl/io.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/kpl/io.h') diff --git a/include/kpl/io.h b/include/kpl/io.h index f353da2..f5904f4 100644 --- a/include/kpl/io.h +++ b/include/kpl/io.h @@ -63,6 +63,10 @@ int32_t kpl_io_uring_submit(kpl_io_uring *io_uring); struct io_uring_sqe *kpl_io_uring_op(kpl_io_uring *io_uring, kpl_object_task *task, int32_t op, int32_t fd, const void *addr, uint32_t len, uint64_t offset); +/* + * Add operations to io_uring, can add more then one before submit + */ + inline bool kpl_io_uring_openat(kpl_io_uring *io_uring, kpl_object_task *task, int32_t dir_fd, const char *path, int32_t flags, mode_t mode) { struct io_uring_sqe *sqe = kpl_io_uring_op(io_uring, task, IORING_OP_OPENAT, dir_fd, path, mode, 0); -- cgit v1.2.3