dm_freebsd_sysctl_cpu_temperature Function

public function dm_freebsd_sysctl_cpu_temperature(temperature) result(rc)

Reads temperature of first CPU in °C from sysctl(8) (dev.cpu.0.temperature).

The function returns the following error codes:

  • E_FORMAT if output format is unexpected.
  • E_PLATFORM if current system is not FreeBSD.
  • E_READ if pipe returned no bytes.
  • E_SYSTEM if system call failed.

Arguments

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

Temperature [°C]

Return Value integer


Calls

proc~~dm_freebsd_sysctl_cpu_temperature~~CallsGraph proc~dm_freebsd_sysctl_cpu_temperature dm_freebsd_sysctl_cpu_temperature proc~dm_is_error dm_is_error proc~dm_freebsd_sysctl_cpu_temperature->proc~dm_is_error

Called by

proc~~dm_freebsd_sysctl_cpu_temperature~~CalledByGraph proc~dm_freebsd_sysctl_cpu_temperature dm_freebsd_sysctl_cpu_temperature proc~dm_system_cpu_temperature dm_system_cpu_temperature proc~dm_system_cpu_temperature->proc~dm_freebsd_sysctl_cpu_temperature