Skip to main content

segment

Function segment 

Source
pub const fn segment(vaddr: u64, access: Access) -> Segment
Expand description

Classify a virtual address by segment (UM §5.2.4, Tables 5-3/5-4).

This is the half of translation that does not need the TLB, split out so callers with no TLB (and the many unmapped accesses) do not pay for one.