dm_linux_procfs_cpu_model Function

public function dm_linux_procfs_cpu_model(model) result(rc)

Returns model name of first CPU from /proc/cpuinfo (model name of processor 0), for instance:

  • 12th Gen Intel(R) Core(TM) i3-1215U

The function returns the following error codes:

  • E_EMPTY if result is empty.
  • E_FORMAT if file format is invalid.
  • E_IO if opening file failed.
  • E_PLATFORM if current system is not Linux.
  • E_READ if reading from file system failed.
  • E_NOT_FOUND if file or variable does not exist.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(inout) :: model

Hardware model.

Return Value integer


Called by

proc~~dm_linux_procfs_cpu_model~~CalledByGraph proc~dm_linux_procfs_cpu_model dm_linux_procfs_cpu_model proc~dm_system_cpu_model dm_system_cpu_model proc~dm_system_cpu_model->proc~dm_linux_procfs_cpu_model