impl Tables { /// An inert observation of two ordinary, existing identity-mapped data leaves. /// The caller must separately own exclusive custody of both backing leases /// and of the first leaf before performing any unsafe maintenance operation. pub fn os_k2065_leaf_pair(&self,a:u64,b:u64)->Result<[u64;5],Error>{ if a==b||a%PAGE_SIZE!=0||b%PAGE_SIZE!=0{return Err(Error::UnsupportedLayout)} let slot=self.os_k920_owned_ram_leaf(a)?;let other=self.os_k920_owned_ram_leaf(b)?; let original=ram_page(a,false,false);let replacement=ram_page(b,false,false); if unsafe{core::ptr::read_volatile(slot as*const u64)}!=original||unsafe{core::ptr::read_volatile(other as*const u64)}!=replacement{return Err(Error::UnsupportedLayout)} Ok([self.root,a,slot,original,replacement]) } }