dm_system_cpu_model Function

public function dm_system_cpu_model(model) result(rc)

Uses

  • proc~~dm_system_cpu_model~~UsesGraph proc~dm_system_cpu_model dm_system_cpu_model module~dm_freebsd dm_freebsd proc~dm_system_cpu_model->module~dm_freebsd module~dm_linux dm_linux proc~dm_system_cpu_model->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 model name of first CPU in model from /proc/cpuinfo on Linux and from sysctl(8) on FreeBSD, for instance:

  • Intel(R) Atom(TM) CPU D2550 @ 1.86GHz
  • Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

Argument model must be large enough to hold the name. On error, model will be empty.

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
character(len=*), intent(inout) :: model

Hardware model.

Return Value integer


Calls

proc~~dm_system_cpu_model~~CallsGraph proc~dm_system_cpu_model dm_system_cpu_model proc~dm_freebsd_sysctl_cpu_model dm_freebsd_sysctl_cpu_model proc~dm_system_cpu_model->proc~dm_freebsd_sysctl_cpu_model proc~dm_linux_procfs_cpu_model dm_linux_procfs_cpu_model proc~dm_system_cpu_model->proc~dm_linux_procfs_cpu_model