Reads temperature of first CPU in °C from
/sys/class/thermal/thermal_zone0/temp. The CPU thermal zone may
have to be enabled in BIOS/UEFI.
The function returns the following error codes:
E_IO if command failed.E_PLATFORM if current system is not Linux.E_READ if pipe returned no bytes.E_SYSTEM if system call failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(out) | :: | temperature | Temperature [°C] |