diff --git a/aya/src/util.rs b/aya/src/util.rs index 3184dae4..149f1a97 100644 --- a/aya/src/util.rs +++ b/aya/src/util.rs @@ -53,7 +53,7 @@ impl KernelVersion { } /// The equivalent of LINUX_VERSION_CODE. - pub(crate) fn code(self) -> u32 { + pub fn code(self) -> u32 { let Self { major, minor, diff --git a/xtask/public-api/aya.txt b/xtask/public-api/aya.txt index 5aa23f6a..28a82b88 100644 --- a/xtask/public-api/aya.txt +++ b/xtask/public-api/aya.txt @@ -7477,6 +7477,7 @@ pub fn aya::programs::loaded_programs() -> impl core::iter::traits::iterator::It pub mod aya::util pub struct aya::util::KernelVersion impl aya::util::KernelVersion +pub fn aya::util::KernelVersion::code(self) -> u32 pub fn aya::util::KernelVersion::current() -> core::result::Result pub fn aya::util::KernelVersion::new(major: u8, minor: u8, patch: u16) -> Self impl core::clone::Clone for aya::util::KernelVersion