Class: Nl::Linux::Psp::Messages::DoDevSetRequest

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

Overview

Set the configuration of a PSP device.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
4
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Dev
ATTRIBUTES =
Ractor.make_shareable(%i[id psp_versions_ena])

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

#id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



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

def id; attributes[:"id"]&.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:



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

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