pub struct ExtractedKernel {
pub kernel_release: String,
pub image: PathBuf,
pub config: Option<PathBuf>,
pub system_map: Option<PathBuf>,
pub modules_dir: Option<PathBuf>,
pub vmlinux: Option<PathBuf>,
}Expand description
The artifacts recovered from one or more kernel packages.
Paths are absolute and point inside the destination directory
passed to extract_kernel_packages, except where a field is
None because the corresponding package (config, debuginfo, …)
was not supplied.
Fields§
§kernel_release: Stringuname -r-style kernel release string derived from the
extracted tree (e.g. 6.14.6-300.fc42.x86_64).
image: PathBufRaw bootable image (x86_64 bzImage, aarch64 flat Image),
normalized from whatever form the package shipped.
config: Option<PathBuf>Kernel .config, when the package carries one.
system_map: Option<PathBuf>System.map, when present.
modules_dir: Option<PathBuf>Root directory containing lib/modules/<release>/…, suitable
for module_closure. None when no module tree was found.
vmlinux: Option<PathBuf>Uncompressed vmlinux from a debuginfo package, when supplied.
Trait Implementations§
Source§impl Clone for ExtractedKernel
impl Clone for ExtractedKernel
Source§fn clone(&self) -> ExtractedKernel
fn clone(&self) -> ExtractedKernel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtractedKernel
impl RefUnwindSafe for ExtractedKernel
impl Send for ExtractedKernel
impl Sync for ExtractedKernel
impl Unpin for ExtractedKernel
impl UnwindSafe for ExtractedKernel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more