MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / get_framebuffer

Method get_framebuffer

os/src/drivers/gpu/mod.rs:61–66  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

59 self.gpu.exclusive_access().flush().unwrap();
60 }
61 fn get_framebuffer(&self) -> &mut [u8] {
62 unsafe {
63 let ptr = self.fb.as_ptr() as *const _ as *mut u8;
64 core::slice::from_raw_parts_mut(ptr, self.fb.len())
65 }
66 }
67 fn update_cursor(&self) {}
68}

Callers 1

sys_framebufferFunction · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected