Deleted Added
full compact
29c29
< .\" $FreeBSD: head/lib/libkvm/kvm_getpcpu.3 235286 2012-05-11 20:06:46Z gjb $
---
> .\" $FreeBSD: head/lib/libkvm/kvm_getpcpu.3 249344 2013-04-10 20:26:53Z glebius $
31c31
< .Dd February 28, 2010
---
> .Dd April 11, 2013
51a52,55
> .Ft ssize_t
> .Fn kvm_read_zpcpu "kvm_t *kd" "void *buf" "u_long base" "size_t size" "int cpu"
> .Ft uint64_t
> .Fn kvm_counter_u64_fetch "kvm_t *kd" "u_long base"
85a90,111
> The
> .Fn kvm_read_zpcpu
> function is used to obtain private per-CPU copy from a
> .Dv UMA_ZONE_PCPU
> .Xr zone 9 .
> It takes
> .Fa base
> argument as base address of an allocation and copyies
> .Fa size
> bytes into
> .Fa buf
> from the part of allocation that is private to
> .Fa cpu .
> .Pp
> The
> .Fn kvm_counter_u64_fetch
> function fetches value of a
> .Xr counter 9
> pointed by
> .Fa base
> address.
> .Pp
124a151,155
> On success, the
> .Fn kvm_read_zpcpu
> function returns number of bytes copied.
> If an error occurs, it returns -1 instead.
> .Pp
130c161,163
< .Xr kvm 3
---
> .Xr kvm 3 ,
> .Xr counter 9 ,
> .Xr zone 9