Solid::Processor Class

class Solid::Processor

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

Public Types

enum InstructionSet { NoExtensions, IntelMmx, IntelSse, IntelSse2, IntelSse3, …, AltiVec }
flags InstructionSets

Properties

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.

ConstantValue
Solid::Processor::NoExtensions0x0
Solid::Processor::IntelMmx0x1
Solid::Processor::IntelSse0x2
Solid::Processor::IntelSse20x4
Solid::Processor::IntelSse30x8
Solid::Processor::IntelSsse30x80
Solid::Processor::IntelSse40x10
Solid::Processor::IntelSse410x10
Solid::Processor::IntelSse420x100
Solid::Processor::Amd3DNow0x20
Solid::Processor::AltiVec0x40

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:

bool canChangeFrequency() const

[read-only] instructionSets : InstructionSets

Access functions:

Solid::Processor::InstructionSets instructionSets() const

[read-only] maxSpeed : qulonglong

Access functions:

int maxSpeed() const

[read-only] number : int

Access functions:

int number() 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.