FreeBSD/lib/libkvm/kvm_pcpu.c
/*
 * Obtain a per-CPU copy for given cpu from UMA_ZONE_PCPU allocation.
 */
Obtain a per-CPU copy for given cpu from UMA_ZONE_PCPU allocation.
Obtain a per - CPU copy for given cpu from UMA_ZONE_PCPU allocation .
ssize_t
kvm_read_zpcpu(kvm_t *kd, u_long base, void *buf, size_t size, int cpu)
{
	if (!kvm_native(kd))
		return (-1);
	return (kvm_read(kd, (uintptr_t)(base + sizeof(struct pcpu) * cpu),
	    buf, size));
}
ssize_t kvm_read_zpcpu ( kvm_t * kd , u_long base , void * buf , size_t size , int cpu ) { if ( ! kvm_native ( kd ) ) return ( -1 ) ; return ( kvm_read ( kd , ( uintptr_t ) ( base + sizeof ( struct pcpu ) * cpu ) , buf , size ) ) ; }
Obtain a per-CPU copy for given cpu from UMA_ZONE_PCPU allocation.
Obtain a per - CPU copy for given cpu from UMA_ZONE_PCPU allocation .