Searched refs:swt (Results 1 – 6 of 6) sorted by relevance
38 swaptbl_t *swt; in swap_list() local48 swt = malloc(sizeof (int) + n * sizeof (swapent_t) + n * MAXPATHLEN); in swap_list()50 if (swt == NULL) { in swap_list()55 swt->swt_n = n; in swap_list()56 p = (char *)swt + (sizeof (int) + n * sizeof (swapent_t)); in swap_list()59 swt->swt_ent[i].ste_path = p; in swap_list()63 if ((n = swapctl(SC_LIST, swt)) == -1) { in swap_list()65 free(swt); in swap_list()69 swt->swt_n = n; /* Number of entries filled in */ in swap_list()76 for (i = 0; i < swt->swt_n; i++) { in swap_list()[all …]
412 swaptbl_t *swt; in dconf_update() local415 if ((swt = swap_list()) == NULL) in dconf_update()418 if (swt->swt_n == 0) { in dconf_update()420 free(swt); in dconf_update()424 qsort(&swt->swt_ent[0], swt->swt_n, sizeof (swapent_t), in dconf_update()431 for (i = 0; i < swt->swt_n; i++) { in dconf_update()433 swt->swt_ent[i].ste_path) == 0) { in dconf_update()435 swt->swt_ent[i].ste_path); in dconf_update()440 if (i == swt->swt_n) { in dconf_update()443 free(swt); in dconf_update()[all …]
439 swaptbl_t *swt; in update_cache() local445 if ((swt = sys_swaptbl()) == NULL) { in update_cache()466 for (i = 0; i < swt->swt_n; i++) { in update_cache()467 if (swt->swt_ent[i].ste_flags & (ST_INDEL|ST_DOINGDEL)) { in update_cache()474 if ((sf = cache_lookup(swt->swt_ent[i].ste_path)) == NULL) { in update_cache()475 if ((sf = swap_file_alloc(swt->swt_ent[i].ste_path)) == in update_cache()477 free(swt); in update_cache()489 if ((sa = swap_area_lookup(sf, &swt->swt_ent[i])) == NULL) { in update_cache()490 if ((sa = swap_area_alloc(&swt->swt_ent[i])) == NULL) { in update_cache()491 free(swt); in update_cache()[all …]
1422 swt: in cpyact()1526 goto swt; in cpyact()1546 goto swt; in cpyact()1585 goto swt; in cpyact()1590 goto swt; in cpyact()1600 goto swt; in cpyact()
539 swt: in cpyact()571 goto swt; in cpyact()582 goto swt; in cpyact()
3227 struct swaptable *swt; in zsd_refresh_memory() local3269 swt = (struct swaptable *)malloc(swt_size); in zsd_refresh_memory()3270 if (swt == NULL) { in zsd_refresh_memory()3282 swent = swt->swt_ent; in zsd_refresh_memory()3283 path = (char *)swt + (sizeof (int) + in zsd_refresh_memory()3289 swt->swt_n = num_swap_devices; in zsd_refresh_memory()3290 ctl->zsctl_swap_cache = swt; in zsd_refresh_memory()