ax-percpu 0.4.18

Define and access per-CPU data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Loaded per-CPU template metadata.

/// Returns the loaded address of the single CPU-area template.
pub(crate) fn template_base() -> usize {
    cpu_local::cpu_area_template_base()
}

/// Returns the initialized byte size of one runtime CPU area.
pub(crate) fn template_size() -> usize {
    cpu_local::cpu_area_template_size()
        .expect("CPU-area template end sentinel must follow the fixed prefix")
}