pub unsafe fn direct_io_write(
file: DirectIoFile,
offset: u64,
buf: *const u8,
len: u32,
) -> Result<DiskIoFuture>Expand description
Submit a Direct I/O write and return a future for the result. Submit a Direct I/O write and return a future for the result.
Writes len bytes from the buffer at buf to offset in the file.
The returned future completes when the io_uring CQE arrives.
§Safety
buf must point to aligned, readable memory of at least len bytes
that remains valid until the future completes.
§Panics
Panics if called outside the ringline async executor.