Class: Nl::Linux::Psp::Messages::DoDevGetReply

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/psp.rb

Overview

Get / dump information about PSP capable devices on the system.

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Dev
ATTRIBUTES =
Ractor.make_shareable(%i[id ifindex psp_versions_cap psp_versions_ena assoc_list by_association])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#assoc_list ⇒ Array<AttributeSets::AssocDevInfo>

List of associated virtual devices.



652
# File 'nl-linux/generated/nl/linux/psp.rb', line 652

def assoc_list; attributes[:"assoc_list"].map(&:value); end

#by_association ⇒ Integer

Flag indicating the PSP device is an associated device from a different network namespace. Present when in associated namespace, absent when in primary/host namespace.

Returns:

  • (Integer)

See Also:



660
# File 'nl-linux/generated/nl/linux/psp.rb', line 660

def by_association; attributes[:"by_association"]&.value; end

#id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



627
# File 'nl-linux/generated/nl/linux/psp.rb', line 627

def id; attributes[:"id"]&.value; end

#ifindex ⇒ Integer

ifindex of the main netdevice linked to the PSP device, or the ifindex to associate with the PSP device.

Returns:

  • (Integer)

See Also:



633
# File 'nl-linux/generated/nl/linux/psp.rb', line 633

def ifindex; attributes[:"ifindex"]&.value; end

#psp_versions_cap ⇒ Integer

Bitmask of PSP versions supported by the device.

Known flags are defined in Flags::Version.

Returns:

  • (Integer)

See Also:



640
# File 'nl-linux/generated/nl/linux/psp.rb', line 640

def psp_versions_cap; attributes[:"psp_versions_cap"]&.value; end

#psp_versions_ena ⇒ Integer

Bitmask of currently enabled (accepted on Rx) PSP versions.

Known flags are defined in Flags::Version.

Returns:

  • (Integer)

See Also:



647
# File 'nl-linux/generated/nl/linux/psp.rb', line 647

def psp_versions_ena; attributes[:"psp_versions_ena"]&.value; end