GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  KVM_GETCPTIME (3)

NAME

kvm_getcptime - fetch global CPU time statistics

CONTENTS

Library
Synopsis
Description
Caching
Return Values
See Also

LIBRARY


.Lb libkvm

SYNOPSIS


.In sys/param.h
.In sys/resource.h
.In sys/sysctl.h
.In 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)
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.