dm_freebsd_sysctl_cpu_cores Function

public function dm_freebsd_sysctl_cpu_cores(ncore) result(rc)

Returns number of CPU cores from sysctl(8) (hw.ncpu).

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
integer, intent(out) :: ncore

Number of CPUs.

Return Value integer


Called by

proc~~dm_freebsd_sysctl_cpu_cores~~CalledByGraph proc~dm_freebsd_sysctl_cpu_cores dm_freebsd_sysctl_cpu_cores proc~dm_system_cpu_cores dm_system_cpu_cores proc~dm_system_cpu_cores->proc~dm_freebsd_sysctl_cpu_cores