Lines Matching refs:swap_devices
52 static struct swapent *swap_devices;
94 if (swap_devices == NULL || nswap == 0)
115 if (swap_devices)
116 (void)free(swap_devices);
118 swap_devices = calloc(nswap, sizeof(*swap_devices));
119 if (swap_devices == NULL)
122 rnswap = swapctl(SWAP_STATS, (void *)swap_devices, nswap);
139 if (swap_devices == NULL || nswap == 0) {
182 sep = &swap_devices[i];
208 for (sep = swap_devices, i = 0; i < nswap; i++, sep++) {