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 : 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.