dm_freebsd_vmstat_cpu_idle Function

public function dm_freebsd_vmstat_cpu_idle(idle) result(rc)

Returns CPU idle time from vmstat(8). The procedure runs for > 0.1 sec!

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 reading failed or pipe returned no bytes.
  • E_SYSTEM if system call failed.

Arguments

Type IntentOptional Attributes Name
integer, intent(out) :: idle

Idle time [%].

Return Value integer


Calls

proc~~dm_freebsd_vmstat_cpu_idle~~CallsGraph proc~dm_freebsd_vmstat_cpu_idle dm_freebsd_vmstat_cpu_idle proc~dm_freebsd_vmstat dm_freebsd_vmstat proc~dm_freebsd_vmstat_cpu_idle->proc~dm_freebsd_vmstat proc~dm_is_error dm_is_error proc~dm_freebsd_vmstat->proc~dm_is_error proc~dm_pipe_close dm_pipe_close proc~dm_freebsd_vmstat->proc~dm_pipe_close proc~dm_pipe_open dm_pipe_open proc~dm_freebsd_vmstat->proc~dm_pipe_open proc~dm_pipe_read_line dm_pipe_read_line proc~dm_freebsd_vmstat->proc~dm_pipe_read_line c_pclose c_pclose proc~dm_pipe_close->c_pclose proc~dm_pipe_is_connected dm_pipe_is_connected proc~dm_pipe_close->proc~dm_pipe_is_connected c_popen c_popen proc~dm_pipe_open->c_popen proc~dm_f_c_string dm_f_c_string proc~dm_pipe_open->proc~dm_f_c_string proc~dm_pipe_open->proc~dm_pipe_is_connected c_fgets c_fgets proc~dm_pipe_read_line->c_fgets proc~dm_pipe_read_line->proc~dm_pipe_is_connected