Home
last modified time | relevance | path

Searched refs:swt (Results 1 – 6 of 6) sorted by relevance

/titanic_44/usr/src/cmd/dumpadm/
H A Dswap.c40 swaptbl_t *swt; in swap_list() local
50 swt = malloc(sizeof (int) + n * sizeof (swapent_t) + n * MAXPATHLEN); in swap_list()
52 if (swt == NULL) { in swap_list()
57 swt->swt_n = n; in swap_list()
58 p = (char *)swt + (sizeof (int) + n * sizeof (swapent_t)); in swap_list()
61 swt->swt_ent[i].ste_path = p; in swap_list()
65 if ((n = swapctl(SC_LIST, swt)) == -1) { in swap_list()
67 free(swt); in swap_list()
71 swt->swt_n = n; /* Number of entries filled in */ in swap_list()
78 for (i = 0; i < swt->swt_n; i++) { in swap_list()
[all …]
H A Ddconf.c407 swaptbl_t *swt; in dconf_update() local
410 if ((swt = swap_list()) == NULL) in dconf_update()
413 if (swt->swt_n == 0) { in dconf_update()
415 free(swt); in dconf_update()
419 qsort(&swt->swt_ent[0], swt->swt_n, sizeof (swapent_t), in dconf_update()
426 for (i = 0; i < swt->swt_n; i++) { in dconf_update()
428 swt->swt_ent[i].ste_path) == 0) { in dconf_update()
430 swt->swt_ent[i].ste_path); in dconf_update()
435 if (i == swt->swt_n) { in dconf_update()
438 free(swt); in dconf_update()
[all …]
/titanic_44/usr/src/cmd/rcm_daemon/common/
H A Dswap_rcm.c441 swaptbl_t *swt; in update_cache() local
447 if ((swt = sys_swaptbl()) == NULL) { in update_cache()
468 for (i = 0; i < swt->swt_n; i++) { in update_cache()
469 if (swt->swt_ent[i].ste_flags & (ST_INDEL|ST_DOINGDEL)) { in update_cache()
476 if ((sf = cache_lookup(swt->swt_ent[i].ste_path)) == NULL) { in update_cache()
477 if ((sf = swap_file_alloc(swt->swt_ent[i].ste_path)) == in update_cache()
479 free(swt); in update_cache()
491 if ((sa = swap_area_lookup(sf, &swt->swt_ent[i])) == NULL) { in update_cache()
492 if ((sa = swap_area_alloc(&swt->swt_ent[i])) == NULL) { in update_cache()
493 free(swt); in update_cache()
[all …]
/titanic_44/usr/src/cmd/sgs/yacc/common/
H A Dy2.c1455 swt: in cpyact()
1559 goto swt; in cpyact()
1579 goto swt; in cpyact()
1618 goto swt; in cpyact()
1623 goto swt; in cpyact()
1633 goto swt; in cpyact()
/titanic_44/usr/src/cmd/sgs/lex/common/
H A Dsub1.c538 swt: in cpyact()
570 goto swt; in cpyact()
581 goto swt; in cpyact()
/titanic_44/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c3233 struct swaptable *swt; in zsd_refresh_memory() local
3275 swt = (struct swaptable *)malloc(swt_size); in zsd_refresh_memory()
3276 if (swt == NULL) { in zsd_refresh_memory()
3288 swent = swt->swt_ent; in zsd_refresh_memory()
3289 path = (char *)swt + (sizeof (int) + in zsd_refresh_memory()
3295 swt->swt_n = num_swap_devices; in zsd_refresh_memory()
3296 ctl->zsctl_swap_cache = swt; in zsd_refresh_memory()