AFFINITY_MAX_BITS

Constant AFFINITY_MAX_BITS 

Source
pub const AFFINITY_MAX_BITS: usize = 262144;
Expand description

Maximum number of CPU bits read_affinity is willing to allocate for. 262144 bits = 32 KiB of mask data, well above the largest in-production CONFIG_NR_CPUS this project targets. Capping bounds the worst-case allocation and bounds the retry loop’s iteration count (log2(AFFINITY_MAX_BITS / AFFINITY_INITIAL_BITS) = 5 doublings).