Searched refs:nch_tmp (Results 1 – 2 of 2) sorted by relevance
/dragonfly/usr.bin/vmstat/ |
H A D | vmstat.c | 728 struct nchstats *nch_tmp, nchstats; in dosum() local 786 if ((nch_tmp = malloc(nch_size)) == NULL) { in dosum() 790 if (sysctlbyname("vfs.cache.nchstats", nch_tmp, &nch_size, NULL, 0)) { in dosum() 792 free(nch_tmp); in dosum() 795 if ((nch_tmp = realloc(nch_tmp, nch_size)) == NULL) { in dosum() 803 kvm_nch_cpuagg(nch_tmp, &nchstats, cpucnt); in dosum() 818 free(nch_tmp); in dosum()
|
/dragonfly/usr.bin/systat/ |
H A D | vmstat.c | 887 struct nchstats *nch_tmp; in getinfo() local 931 if ((nch_tmp = malloc(nch_size)) == NULL) { in getinfo() 935 if (sysctlbyname("vfs.cache.nchstats", nch_tmp, &nch_size, NULL, 0)) { in getinfo() 937 free(nch_tmp); in getinfo() 940 if ((nch_tmp = realloc(nch_tmp, nch_size)) == NULL) { in getinfo() 949 kvm_nch_cpuagg(nch_tmp, &ls->nchstats, ncpu); in getinfo() 950 free(nch_tmp); in getinfo()
|