Class: Nl::Linux::Psp::AttributeSets::Dev

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

Defined Under Namespace

Classes: AssocList, Attribute, ByAssociation, Id, Ifindex, Nsid, PspVersionsCap, PspVersionsEna

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#assoc_list ⇒ Array<AttributeSets::AssocDevInfo>

List of associated virtual devices.

Returns:

See Also:



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

def assoc_list; self[:"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:



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

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

#id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



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

def id; self[:"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:



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

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

#nsid ⇒ Integer

Network namespace ID for the device to associate/disassociate. Optional for dev-assoc and dev-disassoc; if not present, the device is looked up in the caller's network namespace.

Returns:

  • (Integer)

See Also:



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

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



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

def psp_versions_cap; self[:"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:



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

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