Skip to main content

parse_bitmap

Function parse_bitmap 

Source
pub fn parse_bitmap(value: &str) -> Vec<u64>
Expand description

Parses a B: …= capability bitmap into 64-bit words, least-significant word first.

The kernel prints these words most-significant first (the last word covers bits 0–63), so the order is reversed here. Getting this backwards silently inverts every capability test, which is why it is a separate, directly-tested function.