dm_system_cpu_temperature Function

public function dm_system_cpu_temperature(temperature) result(rc)

Uses

  • proc~~dm_system_cpu_temperature~~UsesGraph proc~dm_system_cpu_temperature dm_system_cpu_temperature module~dm_freebsd dm_freebsd proc~dm_system_cpu_temperature->module~dm_freebsd module~dm_linux dm_linux proc~dm_system_cpu_temperature->module~dm_linux module~dm_error dm_error module~dm_freebsd->module~dm_error module~dm_kind dm_kind module~dm_freebsd->module~dm_kind module~dm_pipe dm_pipe module~dm_freebsd->module~dm_pipe module~dm_platform dm_platform module~dm_freebsd->module~dm_platform module~dm_linux->module~dm_error module~dm_linux->module~dm_kind module~dm_linux->module~dm_pipe module~dm_linux->module~dm_platform module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_pipe->module~dm_error module~dm_pipe->module~dm_kind unix unix module~dm_pipe->unix

Returns CPU temperature in °C of first processor on Linux and FreeBSD in temperature. On error, argument temperature is set to 0.0.

The function returns the following error codes:

  • E_EMPTY if result is empty.
  • E_FORMAT if output format is unexpected.
  • E_IO if opening file failed.
  • E_NOT_FOUND if file or variable does not exist.
  • E_PLATFORM if system type is unsupported.
  • E_READ if reading failed.
  • E_SYSTEM if system call failed.

Arguments

Type IntentOptional Attributes Name
real, intent(out) :: temperature

Temperature [°C]

Return Value integer


Calls

proc~~dm_system_cpu_temperature~~CallsGraph proc~dm_system_cpu_temperature dm_system_cpu_temperature proc~dm_freebsd_sysctl_cpu_temperature dm_freebsd_sysctl_cpu_temperature proc~dm_system_cpu_temperature->proc~dm_freebsd_sysctl_cpu_temperature proc~dm_linux_sys_cpu_temperature dm_linux_sys_cpu_temperature proc~dm_system_cpu_temperature->proc~dm_linux_sys_cpu_temperature proc~dm_is_error dm_is_error proc~dm_freebsd_sysctl_cpu_temperature->proc~dm_is_error