Solid::Processor Class
This 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
List of all members, including inherited members
Public Types
Properties
- [read-only] canChangeFrequency : bool
- [read-only] instructionSets : InstructionSets
- [read-only] maxSpeed : qulonglong
- [read-only] number : int
Public Functions
- bool canChangeFrequency() const
- Solid::Processor::InstructionSets instructionSets() const
- int maxSpeed() const
- int number() const
Static Public Members
Detailed Description
Member Type Documentation
enum Processor::InstructionSet
flags Processor::InstructionSets
This enum contains the list of architecture extensions you can query.
| Constant | |
|---|---|
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 : bool
Access functions:
boolcanChangeFrequency() const
[read-only] instructionSets : InstructionSets
Access functions:
Solid::Processor::InstructionSetsinstructionSets() const
[read-only] maxSpeed : qulonglong
Access functions:
intmaxSpeed() const
[read-only] number : int
Access functions:
intnumber() const
Member Function Documentation
bool Processor::canChangeFrequency() const
Returns whether the processor can change the CPU frequency.
Note: Getter function for property canChangeFrequency.
[static] Solid::DeviceInterface::Type Processor::deviceInterfaceType()
Returns the Solid::DeviceInterface::Type of the Processor device interface.
See also Solid::DeviceInterface::Type
Solid::Processor::InstructionSets Processor::instructionSets() const
Returns the instructions set extensions supported by the CPU.
Note: Getter function for property instructionSets.
See also Solid::Processor::InstructionSet
int Processor::maxSpeed() const
Returns the maximum speed of the processor in MHz, or 0 if the device can't be queried for this information.
Note: Getter function for property maxSpeed.
int Processor::number() const
Returns the internal processor number in the system, starting from zero.
Note: Getter function for property number.