Skip to main content

CTX_INDEX

Constant CTX_INDEX 

Source
pub const CTX_INDEX: [Ctx; 16];
Expand description

Every context index as a Ctx (kernels compare against these).

CTX_INDEX[i] == i. A kernel that needs “the ring entry at a run-time index” loops over all i and compares, which synthesizes to a plain multiplexer (ring_entry_kernel).