Struct amdgpu_sysfs::hw_mon::HwMon

source ·
pub struct HwMon { /* private fields */ }
Expand description

Reprepesents a hardware monitor. Hardware monitors are used to report real-time information about the device, such as temperatures and power usage.

Implementations

Most of the time you may want to access HwMons through the GpuHandle they’re bound to.

Returns a HashMap of temperatures(in degress celsius), indexed by the labels (example: “edge”).

Gets the current GFX/compute clockspeed in MHz.

Gets the current memory clockspeed in MHz.

Gets the average power (currently) used by the GPU in watts.

Gets the current power cap of the GPU in watts.

Sets the current power cap of the GPU in watts.

Gets the maximum possible power cap for the GPU in watts. If overclocking is disabled, this is probably the same as the default cap.

Gets the minimum possible power cap for the GPU in watts.

Gets the default power cap for the GPU in watts.

Gets the pulse width modulation fan level.

Sets the pulse width modulation fan level.

Gets the current fan speed in RPM.

Gets the maximum possible fan speed in RPM.

Gets the minimum possible fan speed in RPM.

Gets the currently desired fan speed in RPM.

Sets the desired fan speed in RPM.

Gets the pulse width modulation control method.

Sets the fan control method (pwm1_enable).

Gets the GPU voltage in millivolts.

Gets the north bridge voltage in millivolts.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Reads the content of a file in the SysFs.
Reads the content of a file and then parses it
Write to a file in the SysFs.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.