Skip to content

Commit

Permalink
Revised and adapted Kernel, closes #2800
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jun 22, 2019
1 parent 5bf9874 commit 5e145dd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 47 deletions.
60 changes: 19 additions & 41 deletions doc/Type/Kernel.pod6
Expand Up @@ -14,28 +14,21 @@ variable.
=head2 method arch
method arch(--> Str)
method arch
Instance method returning the "arch" (as in "architecture") information of the
Kernel object. Dies if the "arch" could not be established.
=head2 method archname
method archname(--> Str)
method archname
Instance method returning the concatenation of L<hardware|/routine/hardware> and
L<name|/routine/name>.
=head2 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.
=head2 method bits
method bits(--> Int)
method bits
Instance method returning the number of bits used in the architecture of the
processor. Usually B<32> or B<64>.
Expand Down Expand Up @@ -69,66 +62,51 @@ Instance / Class method returning the total memory available to the system.
When using the JVM, this returns the total memory available to the JVM instead.
This method is only available in release v2019.06 and later.
=head2 method desc
method desc(--> Str)
Instance method returning the "desc" (as in "description") of the Kernel object.
Returns a C<Str> type object if the "desc" could not be established.
=head2 method endian
method endian(--> Endian)
method endian(--> Endian:D)
Class method that returns the L<Endian|/type/Endian> object associated with
the kernel architecture (either C<LittleEndian> or C<BigEndian>).
=head2 method hardware
Defined as
method hardware
Instance method returning the hardware information of the Kernel object. Dies
if the hardware information could not be established.
=head2 method hostname
method hostname(--> Str)
method hostname
Instance method returning the hostname of the Kernel object.
=head2 method name
method name(--> Str)
Instance method returning the name of the Kernel object. Returns "unknown"
if the name could not be established.
=head2 method release
method release
Instance method returning the release information of the Kernel object. Dies
if the release information could not be established.
=head2 method signal
Instance method returning the C<Signal> for a given name for the Kernel object.
Defined as:
multi method signal(Kernel:D: Str:D $signal --> Int:D)
multi method signal(Kernel:D: Signal:D \signal --> Int:D)
multi method signal(Kernel:D: Int:D \signal --> Int:D)
Instance method returning the C<Signal> numeric code for a given name for the
Kernel object.
=head2 method signals
Instance method returning a list of C<Signal>s that are supported by the
kernel represented by the Kernel object.
=head2 method signature
Instance method returning the signature of the Kernel object. Returns a
C<Blob> type object if the signature could not be established.
=head2 method version
method version(--> Version)
Instance method returning the version of the Kernel object as a
L<Version|/type/Version> object. Returns a Version object "unknown" if the
version could not be established.
See Also: L<Systemic|/type/Systemic>
=end pod

Expand Down
13 changes: 7 additions & 6 deletions doc/Type/Systemic.pod6
Expand Up @@ -20,9 +20,10 @@ object. Returns "unknown" if the "auth" could not be established.
=head2 method config
Instance returning a hash with object configuration information.
Subject to change without notice, but can be helpful in environments where only
one type of virtual machine is in use.
Instance returning a hash with object configuration information. Subject to
change without notice, but can be helpful in environments where only one type of
virtual machine is in use, or to find about the configuration of any other
object that mixes in this role.
=head2 method desc
Expand All @@ -31,17 +32,17 @@ Returns a C<Str> type object if the "desc" could not be established.
=head2 method name
Instance method returning the name of the VM object.
Instance method returning the name of the object.
=head2 method signature
Instance method returning the signature of the VM object. Returns a
Instance method returning the signature of the object. Returns a
C<Blob> type object if the signature could not be established.
=head2 method version
Instance method returning the version of the object as a
L<Version|/type/Version> object. Returns a Version object "unknown" if the
L<Version|/type/Version> object. Returns a C<Version> object "unknown" if the
version could not be established.
=head2 method gist
Expand Down

0 comments on commit 5e145dd

Please sign in to comment.