Solid::Processor Class
class Solid::ProcessorThis device interface is available on processors. More...
Header: | #include <Solid/Processor> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Solid) target_link_libraries(mytarget PRIVATE KF6::Solid) |
Inherits: | Solid::DeviceInterface |
Public Types
enum | InstructionSet { NoExtensions, IntelMmx, IntelSse, IntelSse2, IntelSse3, …, AltiVec } |
flags | InstructionSets |
Properties
- canChangeFrequency : const bool
- instructionSets : const InstructionSets
- maxSpeed : const qulonglong
- number : const int
Public Functions
bool | canChangeFrequency() const |
Solid::Processor::InstructionSets | instructionSets() const |
int | maxSpeed() const |
int | number() const |
Static Public Members
Solid::DeviceInterface::Type | deviceInterfaceType() |
Detailed Description
Member Type Documentation
enum Processor::InstructionSet
flags Processor::InstructionSets
This enum contains the list of architecture extensions you can query.
Constant | Value |
---|---|
Solid::Processor::NoExtensions | 0x0 |
Solid::Processor::IntelMmx | 0x1 |
Solid::Processor::IntelSse | 0x2 |
Solid::Processor::IntelSse2 | 0x4 |
Solid::Processor::IntelSse3 | 0x8 |
Solid::Processor::IntelSsse3 | 0x80 |
Solid::Processor::IntelSse4 | 0x10 |
Solid::Processor::IntelSse41 | 0x10 |
Solid::Processor::IntelSse42 | 0x100 |
Solid::Processor::Amd3DNow | 0x20 |
Solid::Processor::AltiVec | 0x40 |
The InstructionSets type is a typedef for QFlags<InstructionSet>. It stores an OR combination of InstructionSet values.
Property Documentation
[read-only]
canChangeFrequency : const bool
Access functions:
bool | canChangeFrequency() const |
[read-only]
instructionSets : const InstructionSets
Access functions:
Solid::Processor::InstructionSets | instructionSets() const |
[read-only]
maxSpeed : const qulonglong
Access functions:
int | maxSpeed() const |
[read-only]
number : const int
Access functions:
int | number() const |
Member Function Documentation
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).
Returns true if the processor can change CPU frequency, false otherwise
Note: Getter function for property canChangeFrequency.
[static]
Solid::DeviceInterface::Type Processor::deviceInterfaceType()
Get the Solid::DeviceInterface::Type of the Processor device interface.
Returns the Processor device interface type
See also Solid::Ifaces::Enums::DeviceInterface::Type.
Solid::Processor::InstructionSets Processor::instructionSets() const
Queries the instructions set extensions of the CPU.
Returns the extensions supported by the CPU
Note: Getter function for property instructionSets.
See also Solid::Processor::InstructionSet.
int Processor::maxSpeed() const
Retrieves the maximum speed of the processor.
Returns the maximum speed in MHz, or 0 if the device can't be queried for this information.
Note: Getter function for property maxSpeed.
int Processor::number() const
Retrieves the processor number in the system.
Returns the internal processor number in the system, starting from zero
Note: Getter function for property number.