*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: kvm_getcptime | Section: 3 | Source: FreeBSD | File: kvm_getcptime.3.gz
KVM_GETCPTIME(3) FreeBSD Library Functions Manual KVM_GETCPTIME(3) NAME kvm_getcptime - fetch global CPU time statistics LIBRARY Kernel Data Access Library (libkvm, -lkvm) SYNOPSIS #include <sys/param.h> #include <sys/resource.h> #include <sys/sysctl.h> #include <kvm.h> int kvm_getcptime(kvm_t *kd, long *cp_time); DESCRIPTION The kvm_getcptime() function stores the global CPU time statistics from the kernel kd in the array of counters pointed to by cp_time. Note that cp_time should point to an array of CPUSTATES long integers. The format of the counters is identical to that output by the kern.cp_time sysctl. CACHING This function caches the nlist values for various kernel variables which it reuses in successive calls. You may call the function with kd set to NULL to clear this cache. RETURN VALUES The kvm_getcptime function returns 0 on success and -1 on failure. If an error occurs, then an error message may be retrieved via kvm_geterr(3). SEE ALSO kvm(3) FreeBSD 14.1-RELEASE-p8 August 19, 2008 FreeBSD 14.1-RELEASE-p8

Navigation Options