Solid::Ifaces::Processor Class
class Solid::Ifaces::ProcessorHeader: | #include <Processor> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Solid) target_link_libraries(mytarget PRIVATE KF6::Solid) |
Inherits: | Solid::Ifaces::DeviceInterface |
Public Functions
virtual | ~Processor() override |
virtual bool | canChangeFrequency() const = 0 |
virtual Solid::Processor::InstructionSets | instructionSets() const = 0 |
virtual int | maxSpeed() const = 0 |
virtual int | number() const = 0 |
Detailed Description
This device interface is available on processors.
Member Function Documentation
[override virtual noexcept]
Processor::~Processor()
Destroys a Processor object.
[pure virtual]
bool Processor::canChangeFrequency() const
Indicates if the processor can change the CPU frequency.
True if a processor is able to change its own CPU frequency. (generally for power management).
@return true if the processor can change CPU frequency, false otherwise
[pure virtual]
Solid::Processor::InstructionSets Processor::instructionSets() const
Queries the instructions set extensions of the CPU.
@return the extensions supported by the CPU
[pure virtual]
int Processor::maxSpeed() const
Retrieves the maximum speed of the processor.
@return the maximum speed in MHz
[pure virtual]
int Processor::number() const
Retrieves the processor number in the system.
@return the internal processor number in the system, starting from zero