Skip to main content

parse_bzimage

Function parse_bzimage 

Source
pub fn parse_bzimage(
    kernel_image: &mut (impl Read + Seek),
) -> Result<BzImageInfo, Error>
Expand description

Parse the bzImage setup header and return information needed for loading.

The file position of kernel_image is restored to the beginning on success. On error, restoration is best-effort (the seek-back is attempted but its failure is ignored in favor of the parse error).