pub fn multiboot_header_from_file(
    kernel_file: &mut File
) -> Result<Option<MultibootKernel>>
Expand description

Scan the provided kernel file to find a Multiboot header, if present.

§Returns

  • Ok(None): kernel file did not contain a Multiboot header.
  • Ok(Some(...)): kernel file contained a valid Multiboot header, which is returned.
  • Err(...): kernel file contained a Multiboot header with a valid checksum but other fields in the header were invalid.