aya: make KernelVersion::code public

pull/839/head
Andrés Medina 1 year ago committed by Alessandro Decina
parent 958931efcb
commit 68ba02002f

@ -53,7 +53,7 @@ impl KernelVersion {
} }
/// The equivalent of LINUX_VERSION_CODE. /// The equivalent of LINUX_VERSION_CODE.
pub(crate) fn code(self) -> u32 { pub fn code(self) -> u32 {
let Self { let Self {
major, major,
minor, minor,

@ -7477,6 +7477,7 @@ pub fn aya::programs::loaded_programs() -> impl core::iter::traits::iterator::It
pub mod aya::util pub mod aya::util
pub struct aya::util::KernelVersion pub struct aya::util::KernelVersion
impl aya::util::KernelVersion impl aya::util::KernelVersion
pub fn aya::util::KernelVersion::code(self) -> u32
pub fn aya::util::KernelVersion::current() -> core::result::Result<Self, impl core::error::Error> pub fn aya::util::KernelVersion::current() -> core::result::Result<Self, impl core::error::Error>
pub fn aya::util::KernelVersion::new(major: u8, minor: u8, patch: u16) -> Self pub fn aya::util::KernelVersion::new(major: u8, minor: u8, patch: u16) -> Self
impl core::clone::Clone for aya::util::KernelVersion impl core::clone::Clone for aya::util::KernelVersion

Loading…
Cancel
Save