# class Processor

###

Module | solid
Namespace | Solid
Class | Processor
Inherits | Solid::DeviceInterface

This device interface is available on processors.

### enums

- InstructionSet { NoExtensions, IntelMmx, IntelSse, IntelSse2, IntelSse3, IntelSse4, Amd3DNow, AltiVec }

enum details

### methods

- Processor (backendObject)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  backendObject | QObject |

  Creates a new Processor object. You generally won't need this. It's created when necessary using Device.as().

  backendObject - the device interface object provided by the backend

  See also Solid.Device.as()

- Processor (a0)

  returns ctor
  Not implemented
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |

- canChangeFrequency ( )

  returns bool

  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

- deviceInterfaceType ( )

  returns Solid::DeviceInterface.Type
  static

  Get the Solid.DeviceInterface.Type of the Processor device interface.

  Returns the Processor device interface type

  See also Solid.Ifaces.Enums.DeviceInterface.Type

- instructionSets ( )

  returns Solid::Processor.InstructionSets

  Queries the instructions set extensions of the CPU.

  Returns the extensions supported by the CPU

- maxSpeed ( )

  returns int

  Retrieves the maximum speed of the processor.

  Returns the maximum speed in MHz

- number ( )

  returns int

  Retrieves the processor number in the system.

  Returns the internal processor number in the system, starting from zero

### enums - detail

- InstructionSet { NoExtensions, IntelMmx, IntelSse, IntelSse2, IntelSse3, IntelSse4, Amd3DNow, AltiVec }

  This enum contains the list of architecture extensions you can query.

  | NoExtensions | - 0x0 | - |
  | IntelMmx | - 0x1 | - |
  | IntelSse | - 0x2 | - |
  | IntelSse2 | - 0x4 | - |
  | IntelSse3 | - 0x8 | - |
  | IntelSse4 | - 0x10 | - |
  | Amd3DNow | - 0x20 | - |
  | AltiVec | - 0x40 | - |