/titanic_41/usr/src/uts/common/vm/ |
H A D | seg_vn.c | 266 struct segvn_data *svd = buf; in segvn_cache_constructor() local 268 rw_init(&svd->lock, NULL, RW_DEFAULT, NULL); in segvn_cache_constructor() 269 mutex_init(&svd->segfree_syncmtx, NULL, MUTEX_DEFAULT, NULL); in segvn_cache_constructor() 270 svd->svn_trnext = svd->svn_trprev = NULL; in segvn_cache_constructor() 278 struct segvn_data *svd = buf; in segvn_cache_destructor() local 280 rw_destroy(&svd->lock); in segvn_cache_destructor() 281 mutex_destroy(&svd->segfree_syncmtx); in segvn_cache_destructor() 544 struct segvn_data *svd; in segvn_create() local 810 svd = kmem_cache_alloc(segvn_cache, KM_SLEEP); in segvn_create() 813 seg->s_data = (void *)svd; in segvn_create() [all …]
|
H A D | vm_usage.c | 1086 struct segvn_data *svd; in vmu_calculate_seg() local 1117 svd = (struct segvn_data *)seg->s_data; in vmu_calculate_seg() 1118 if (svd->type == MAP_SHARED) { in vmu_calculate_seg() 1121 swresv = svd->swresv; in vmu_calculate_seg() 1123 if (SEGVN_LOCK_TRYENTER(seg->s_as, &svd->lock, in vmu_calculate_seg() 1133 if (svd->tr_state == SEGVN_TR_OFF && in vmu_calculate_seg() 1134 svd->amp != NULL) { in vmu_calculate_seg() 1135 private_amp = svd->amp; in vmu_calculate_seg() 1136 p_start = svd->anon_index; in vmu_calculate_seg() 1137 p_end = svd->anon_index + in vmu_calculate_seg() [all …]
|
H A D | vm_seg.c | 1824 struct segvn_data *svd; in seg_can_change_zones() local 1830 svd = (struct segvn_data *)seg->s_data; in seg_can_change_zones() 1831 if (svd->type == MAP_SHARED && in seg_can_change_zones() 1832 svd->amp != NULL && in seg_can_change_zones() 1833 svd->amp->swresv > 0) in seg_can_change_zones() 1845 struct segvn_data *svd; in seg_swresv() local 1849 svd = (struct segvn_data *)seg->s_data; in seg_swresv() 1850 if (svd->type == MAP_PRIVATE && svd->swresv > 0) in seg_swresv() 1851 swap = svd->swresv; in seg_swresv()
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | gcore.c | 164 mdb_segvn_data_t *svd = NULL; in gsvn_init() local 169 svd = mdb_alloc(sizeof (*svd), UM_SLEEP); in gsvn_init() 170 if (mdb_ctf_vread(svd, "segvn_data_t", "mdb_segvn_data_t", in gsvn_init() 175 if (svd->pageprot != 0) { in gsvn_init() 181 (uintptr_t)svd->vpage) != vpgtob(nvpage)) { in gsvn_init() 183 svd->vpage); in gsvn_init() 187 svd->vpage = vpage; in gsvn_init() 189 svd->vpage = NULL; in gsvn_init() 191 gs->gs_data = svd; in gsvn_init() 200 mdb_free(svd, sizeof (*svd)); in gsvn_init() [all …]
|
H A D | memory.c | 1260 struct segvn_data svd; in segvn_anon_walk_init() local 1268 if (mdb_vread(&svd, sizeof (svd), svd_addr) == -1) { in segvn_anon_walk_init() 1273 if (svd.amp == NULL) { in segvn_anon_walk_init() 1278 amp_addr = (uintptr_t)svd.amp; in segvn_anon_walk_init() 1284 seg_addr = (uintptr_t)svd.seg; in segvn_anon_walk_init() 1290 if ((seg.s_size + (svd.anon_index << PAGESHIFT)) > amp.size) { in segvn_anon_walk_init() 1298 svd.anon_index, svd.anon_index + (seg.s_size >> PAGESHIFT))); in segvn_anon_walk_init() 1371 struct segvn_data *svd; in segvn_pages_walk_init() local 1392 svd = &svw->svw_svd; in segvn_pages_walk_init() 1394 (uintptr_t)svd->seg) == -1) { in segvn_pages_walk_init() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | urw.c | 63 struct segvn_data *svd; in page_valid() local 107 (svd = (struct segvn_data *)seg->s_data) != NULL && in page_valid() 108 (svd->vp == NULL || svd->vp->v_type != VREG) && in page_valid() 109 (svd->flags & MAP_NORESERVE)) { in page_valid()
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | vdev.c | 679 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() argument 681 spa_t *spa = svd->vdev_spa; in vdev_top_transfer() 688 tvd->vdev_ms_array = svd->vdev_ms_array; in vdev_top_transfer() 689 tvd->vdev_ms_shift = svd->vdev_ms_shift; in vdev_top_transfer() 690 tvd->vdev_ms_count = svd->vdev_ms_count; in vdev_top_transfer() 692 svd->vdev_ms_array = 0; in vdev_top_transfer() 693 svd->vdev_ms_shift = 0; in vdev_top_transfer() 694 svd->vdev_ms_count = 0; in vdev_top_transfer() 697 ASSERT3P(tvd->vdev_mg, ==, svd->vdev_mg); in vdev_top_transfer() 698 tvd->vdev_mg = svd->vdev_mg; in vdev_top_transfer() [all …]
|
H A D | vdev_label.c | 1023 vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags) in vdev_uberblock_sync_list() argument 1025 spa_t *spa = svd[0]->vdev_spa; in vdev_uberblock_sync_list() 1032 vdev_uberblock_sync(zio, ub, svd[v], flags); in vdev_uberblock_sync_list() 1044 zio_flush(zio, svd[v]); in vdev_uberblock_sync_list() 1185 vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg, boolean_t tryhard) in vdev_config_sync() argument 1187 spa_t *spa = svd[0]->vdev_spa; in vdev_config_sync() 1263 if ((error = vdev_uberblock_sync_list(svd, svdcount, ub, flags)) != 0) in vdev_config_sync()
|
H A D | spa.c | 6384 vdev_t *svd[SPA_DVAS_PER_BP]; in spa_sync() local 6393 svd[svdcount++] = vd; in spa_sync() 6397 error = vdev_config_sync(svd, svdcount, txg, B_FALSE); in spa_sync() 6399 error = vdev_config_sync(svd, svdcount, txg, in spa_sync()
|
/titanic_41/usr/src/cmd/mdb/common/modules/mdb_ks/ |
H A D | mdb_ks.c | 1311 struct segvn_data svd; in asmap_step() local 1314 if (seg->s_ops == asmp->asm_segvn_ops && mdb_vread(&svd, in asmap_step() 1315 sizeof (svd), (uintptr_t)seg->s_data) == sizeof (svd)) { in asmap_step() 1317 if (svd.vp != NULL) { in asmap_step() 1318 if (mdb_vnode2path((uintptr_t)svd.vp, map.map_name, in asmap_step() 1321 MDB_TGT_MAPSZ, "[ vnode %p ]", svd.vp); in asmap_step()
|
/titanic_41/usr/src/uts/sparc/v9/os/ |
H A D | simulator.c | 859 struct segvn_data *svd; in simulate_unimp() local 1093 svd = (struct segvn_data *)mapseg->s_data; in simulate_unimp() 1098 SEGVN_LOCK_ENTER(as, &svd->lock, RW_READER); in simulate_unimp() 1099 if ((svd->type & MAP_TYPE) & MAP_SHARED) { in simulate_unimp() 1100 SEGVN_LOCK_EXIT(as, &svd->lock); in simulate_unimp() 1104 SEGVN_LOCK_EXIT(as, &svd->lock); in simulate_unimp()
|
/titanic_41/usr/src/uts/common/fs/zfs/sys/ |
H A D | vdev.h | 125 extern int vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg,
|
/titanic_41/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 3851 struct segvn_data *svd; in pr_getprot() member 3869 (!reserved && seg->s_ops == &segvn_ops && s.svd != NULL && in pr_getprot() 3870 (s.svd->vp == NULL || s.svd->vp->v_type != VREG) && in pr_getprot() 3871 (s.svd->flags & MAP_NORESERVE)); in pr_getprot() 3880 seg->s_ops == &segvn_ops && s.svd != NULL && s.svd->pageprot == 0) { in pr_getprot() 3881 prot = s.svd->prot; in pr_getprot()
|