Function
write_fdt_to_memory
(fdt_final: &[u8], guest_mem: &GuestMemoryMmap)
Source from the content-addressed store, hash-verified
| 260 | } |
| 261 | |
| 262 | pub fn write_fdt_to_memory(fdt_final: &[u8], guest_mem: &GuestMemoryMmap) -> Result<()> { |
| 263 | // Write FDT to memory. |
| 264 | guest_mem |
| 265 | .write_slice(fdt_final, super::layout::FDT_START) |
| 266 | .map_err(Error::WriteFdtToMemory)?; |
| 267 | Ok(()) |
| 268 | } |
| 269 | |
| 270 | // Following are the auxiliary function for creating the different nodes that we append to our FDT. |
| 271 | fn create_cpu_nodes( |
Tested by
no test coverage detected