pub unsafe fn init(
fb_ptr: *mut u8,
width: usize,
height: usize,
stride: usize,
bpp: usize,
format: FbPixelFormat,
)Expand description
Initialize the framebuffer console with the given parameters.
Must be called after the framebuffer is available (after UEFI boot on x86_64, or after ramfb init on AArch64/RISC-V).
§Safety
fb_ptr must point to a valid framebuffer of at least stride * height
bytes, mapped for the kernel’s lifetime.