Lines Matching refs:swt
439 swaptbl_t *swt; in update_cache() local
445 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()
500 free(swt); in update_cache()
574 swaptbl_t *swt; in sys_swaptbl() local
583 if ((swt = (swaptbl_t *)malloc(tbl_size)) == NULL) in sys_swaptbl()
586 swt->swt_n = n; in sys_swaptbl()
587 cp = (char *)swt + (sizeof (int) + n * sizeof (swapent_t)); in sys_swaptbl()
589 swt->swt_ent[i].ste_path = cp; in sys_swaptbl()
593 if ((n = swapctl(SC_LIST, swt)) == -1) { in sys_swaptbl()
594 free(swt); in sys_swaptbl()
598 if (n != swt->swt_n) { in sys_swaptbl()
600 free(swt); in sys_swaptbl()
604 return (swt); in sys_swaptbl()