class Kernel

Kernel related information

class Kernel does Systemic { }

Built-in class for providing kernel related information. Usually accessed through the $*KERNEL dynamic variable.

Methods

method arch

method arch(--> Str)

Instance method returning the "arch" (as in "architecture") information of the Kernel object. Dies if the "arch" could not be established.

method archname

method archname(--> Str)

Instance method returning the concatenation of hardware and arch.

method auth

method auth(--> Str)

Instance method returning the "auth" (as in "author" or "authority") of the Kernel object. Returns "unknown" if the "auth" could not be established.

method bits

method bits(--> Int)

Instance method returning the number of bits used in the architecture of the processor. Usually 32 or 64.

method cpu-cores

method cpu-cores(--> Int)

Instance / Class method returning the number of CPU cores that are available.

method cpu-usage

method cpu-usage(--> Int)

Instance / Class method returning the amount of CPU uses since the start of the program (in microseconds).

method desc

Instance method returning the "desc" (as in "description") of the Kernel object. Returns a Str type object if the "desc" could not be established.

method hardware

Instance method returning the hardware information of the Kernel object. Dies if the hardware information could not be established.

method name

method name(--> Str)

Instance method returning the name of the Kernel object. Returns "unknown" if the name could not be established.

method release

Instance method returning the release information of the Kernel object. Dies if the release information could not be established.

method signal

Instance method returning the Signal for a given name for the Kernel object.

method signals

Instance method returning a list of Signals that are supported by the kernel represented by the Kernel object.

method signature

Instance method returning the signature of the Kernel object. Returns a Blob type object if the signature could not be established.

method version

method version(--> Version)

Instance method returning the version of the Kernel object as a Version object. Returns a Version object "unknown" if the version could not be established.

See Also: Systemic

Type Graph

Type relations for Kernel
perl6-type-graph Kernel Kernel Any Any Kernel->Any Mu Mu Any->Mu

Stand-alone image: vector