Module: OS::Linux::Kernel Private

Extended by:
T::Sig
Defined in:
os/linux/kernel.rb

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Helper functions for querying Linux kernel information.

Class Method Summary collapse

Class Method Details

.below_minimum_version?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


19
20
21
# File 'os/linux/kernel.rb', line 19

def below_minimum_version?
  OS.kernel_version < minimum_version
end

.minimum_versionVersion

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



15
16
17
# File 'os/linux/kernel.rb', line 15

def minimum_version
  Version.new "2.6.32"
end