pub fn ktstr_kernel_env() -> Option<String>Expand description
Read KTSTR_KERNEL_ENV once, normalizing the raw value:
missing / empty / whitespace-only reads collapse to None, and
a surrounding-whitespace trim is applied so a shell-quoted
KTSTR_KERNEL=" ../linux" behaves the same as the unquoted
form. Every caller that reads the env var should route through
this helper so the normalization rules live in one place; a
future change to the rules (e.g. accepting a trailing slash)
propagates to every site automatically.
Returns the raw string; callers that need a structured
identifier parse with kernel_path::KernelId::parse.