DoxigAlpha

prep_fallocate

Function parameters

Parameters

#
sqe:*linux.io_uring_sqe
fd:linux.fd_t
mode:i32
offset:u64
len:u64

Type definitions in this namespace

Types

#

Source

Implementation

#
pub fn prep_fallocate(
    sqe: *linux.io_uring_sqe,
    fd: linux.fd_t,
    mode: i32,
    offset: u64,
    len: u64,
) void {
    sqe.* = .{
        .opcode = .FALLOCATE,
        .flags = 0,
        .ioprio = 0,
        .fd = fd,
        .off = offset,
        .addr = len,
        .len = @intCast(mode),
        .rw_flags = 0,
        .user_data = 0,
        .buf_index = 0,
        .personality = 0,
        .splice_fd_in = 0,
        .addr3 = 0,
        .resv = 0,
    };
}