From 6a04b5b7e31a6721626d99a007270f1f9d851efb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 23 May 2021 12:25:37 -0400 Subject: [PATCH] linux::io_uring: add offs to read/write Signed-off-by: Drew DeVault --- io_uring/sqe.ha | 6 ++++-- diff --git a/io_uring/sqe.ha b/io_uring/sqe.ha index 5d9c8071e1c563318c507ab63d2a4f4b3502818e..efea2460461f4a87e212db26f73d31c4c5cdb1ad 100644 --- a/io_uring/sqe.ha +++ b/io_uring/sqe.ha @@ -68,10 +68,11 @@ sqe: *sqe, fd: int, buf: *void, count: size, + offs: u64, flags: flags... ) void = { assert(count <= types::U32_MAX); - preprw(sqe, op::READ, fd, buf, count: u32, 0, flags...); + preprw(sqe, op::READ, fd, buf, count: u32, offs, flags...); }; // Prepares a write operation for an [[sqe]]. @@ -80,10 +81,11 @@ sqe: *sqe, fd: int, buf: *void, count: size, + offs: u64, flags: flags... ) void = { assert(count <= types::U32_MAX); - preprw(sqe, op::WRITE, fd, buf, count: u32, 0, flags...); + preprw(sqe, op::WRITE, fd, buf, count: u32, offs, flags...); }; // Prepares a read for a fixed buffer previously registered with -- 2.48.1