Function buf_ring_mask [src]

Calculates the appropriate size mask for a buffer ring. entries is the ring entries as specified in io_uring_register_buf_ring.

Prototype

pub fn buf_ring_mask(entries: u16) u16

Parameters

entries: u16

Source

pub fn buf_ring_mask(entries: u16) u16 { return entries - 1; }