Method: ComputeUnit::Device.subsystem_device
- Defined in:
- lib/compute_unit/device.rb
.subsystem_device(device_path) ⇒ String
Returns - the device number ie. 1002 (can be different from vendor).
235 236 237 |
# File 'lib/compute_unit/device.rb', line 235 def self.subsystem_device(device_path) read_kernel_setting(device_path, 'subsystem_device', '').slice(2, 6) end |