Searched refs:nswap (Results 1 - 4 of 4) sorted by relevance
/openbsd-current/usr.bin/systat/ |
H A D | swap.c | 51 static int hlen, nswap, rnswap; variable 94 if (swap_devices == NULL || nswap == 0) 97 num_disp = nswap; 98 if (nswap > 1) 108 nswap = swapctl(SWAP_NSWAP, 0, 0); 110 if (nswap < 0) 112 if (nswap == 0) 118 swap_devices = calloc(nswap, sizeof(*swap_devices)); 122 rnswap = swapctl(SWAP_STATS, (void *)swap_devices, nswap); 123 if (rnswap == -1 || nswap ! [all...] |
/openbsd-current/sbin/swapctl/ |
H A D | swaplist.c | 53 int rnswap, nswap, i; local 55 nswap = swapctl(SWAP_NSWAP, 0, 0); 56 if (nswap < 1) 59 fsep = sep = calloc(nswap, sizeof(*sep)); 62 rnswap = swapctl(SWAP_STATS, (void *)sep, nswap); 65 if (nswap != rnswap) 67 rnswap, nswap);
|
/openbsd-current/usr.bin/top/ |
H A D | machine.c | 823 int nswap, rnswap, i; local 825 nswap = swapctl(SWAP_NSWAP, 0, 0); 826 if (nswap == 0) 829 swdev = calloc(nswap, sizeof(*swdev)); 833 rnswap = swapctl(SWAP_STATS, swdev, nswap); 839 /* if rnswap != nswap, then what? */ 843 for (i = 0; i < nswap; i++) {
|
/openbsd-current/usr.sbin/pstat/ |
H A D | pstat.c | 1105 int hlen = 10, nswap; local 1117 nswap = swapctl(SWAP_NSWAP, 0, 0); 1118 if (nswap == 0) { 1127 if ((swdev = calloc(nswap, sizeof(*swdev))) == NULL) 1129 if (swapctl(SWAP_STATS, swdev, nswap) == -1) 1140 for (i = 0; i < nswap; i++) {
|
Completed in 175 milliseconds