Class: OsCtl::Lib::CpuTopology::Cpu

Inherits:
Struct
  • Object
show all
Defined in:
lib/libosctl/cpu_topology.rb

Instance Attribute Summary collapse

Instance Attribute Details

#idInteger (readonly)

Returns CPU ID.

Returns:

  • (Integer)

    CPU ID



13
# File 'lib/libosctl/cpu_topology.rb', line 13

Cpu = Struct.new(:id, :package_id, keyword_init: true)

#package_idInteger (readonly)

Returns Package ID.

Returns:

  • (Integer)

    Package ID



13
# File 'lib/libosctl/cpu_topology.rb', line 13

Cpu = Struct.new(:id, :package_id, keyword_init: true)