pub const io_uring_probe = extern struct last_op: IORING_OPLast opcode supported
ops_len: u8Length of ops[] array below
resv: u16resv2: [3]u32ops: [256]io_uring_probe_oppub fn is_supported(self: @This(), op: IORING_OP) boolIs the operation supported on the running kernel.
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775pub const io_uring_probe = extern struct {
/// Last opcode supported
last_op: IORING_OP,
/// Length of ops[] array below
ops_len: u8,
resv: u16,
resv2: [3]u32,
ops: [256]io_uring_probe_op,
/// Is the operation supported on the running kernel.
pub fn is_supported(self: @This(), op: IORING_OP) bool {
const i = @backingInt(op);
if (i > @backingInt(self.last_op) or i >= self.ops_len)
return false;
return self.ops[i].is_supported();
}
}