KVM_NCACHE(3) BSD Programmer's Manual KVM_NCACHE(3)NAMEkvm_ncache - kernel name cache statistics
SYNOPSIS
#include <sys/param.h>
#include <sys/uio.h>
#include <sys/namei.h>
#include <sys/sysctl.h>
#include <kvm.h>
#include <kvm_stat.h>
int
kvm_ncache(kvm_t *kd, struct nchstats *np);
DESCRIPTION
The kvm_ncache() function fills in the struct nchstats structure refer-
enced by np with the name cache usage statistics from the kernel indicat-
ed by kd.
RETURN VALUES
The kvm_ncache() routine returns zero on success and -1 on failure. Upon
failure kvm_geterr(3) can be used to obtain a string describing the er-
ror.
SEE ALSOkvm(3), kvm_open(3), kvm_openfiles(3), kvm_close(3), kvm_read(3),
kvm_write(3), kvm_nlist(3), kvm_geterr(3)BSDI BSD/OS May 7, 1997 1