/// Create a new Frame given a PAddr range (from, to)
Create a new Frame given a PAddr range (from, to)
Create a new Frame given a PAddr range ( from to )
pub fn from_range(range: (PAddr, PAddr), node: atopology::NodeId) -> Frame {
        assert_eq!(range.0 % BASE_PAGE_SIZE, 0);
        assert_eq!(range.1 % BASE_PAGE_SIZE, 0);
        assert!(range.0 < range.1);
        Frame {
            base: range.0,
            size: (range.1 - range.0).into(),
            affinity: node,
        }
    }
pub fn from_range ( range : ( PAddr , PAddr ) , node : atopology :: NodeId ) -> Frame { assert_eq ! ( range 0 BASE_PAGE_SIZE 0 ) ; assert_eq ! ( range 1 BASE_PAGE_SIZE 0 ) ; assert ! ( range 0 range 1 ) ; Frame { base : range . 0 , size : ( range . 1 - range . 0 ) . into ( ) , affinity : node , } }
Create a new Frame given a PAddr range (from, to)
Create a new Frame given a PAddr range ( from to )
range
(PAddr, PAddr)
node
atopology::NodeId