Home
last modified time | relevance | path

Searched refs:svd (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/uts/common/vm/
H A Dseg_vn.c266 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()
546 struct segvn_data *svd; in segvn_create() local
821 svd = kmem_cache_alloc(segvn_cache, KM_SLEEP); in segvn_create()
824 seg->s_data = (void *)svd; in segvn_create()
[all …]
H A Dvm_usage.c1086 struct segvn_data *svd; in vmu_calculate_seg() local
1119 svd = (struct segvn_data *)seg->s_data; in vmu_calculate_seg()
1120 if (svd->type == MAP_SHARED) { in vmu_calculate_seg()
1123 swresv = svd->swresv; in vmu_calculate_seg()
1125 if (SEGVN_LOCK_TRYENTER(seg->s_as, &svd->lock, in vmu_calculate_seg()
1135 if (svd->tr_state == SEGVN_TR_OFF && in vmu_calculate_seg()
1136 svd->amp != NULL) { in vmu_calculate_seg()
1137 private_amp = svd->amp; in vmu_calculate_seg()
1138 p_start = svd->anon_index; in vmu_calculate_seg()
1139 p_end = svd->anon_index + in vmu_calculate_seg()
[all …]
H A Dvm_seg.c1824 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()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c164 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 Dmemory.c1294 struct segvn_data svd; in segvn_anon_walk_init() local
1302 if (mdb_vread(&svd, sizeof (svd), svd_addr) == -1) { in segvn_anon_walk_init()
1307 if (svd.amp == NULL) { in segvn_anon_walk_init()
1312 amp_addr = (uintptr_t)svd.amp; in segvn_anon_walk_init()
1318 seg_addr = (uintptr_t)svd.seg; in segvn_anon_walk_init()
1324 if ((seg.s_size + (svd.anon_index << PAGESHIFT)) > amp.size) { in segvn_anon_walk_init()
1332 svd.anon_index, svd.anon_index + (seg.s_size >> PAGESHIFT))); in segvn_anon_walk_init()
1405 struct segvn_data *svd; in segvn_pages_walk_init() local
1426 svd = &svw->svw_svd; in segvn_pages_walk_init()
1428 (uintptr_t)svd->seg) == -1) { in segvn_pages_walk_init()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev.c972 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() argument
974 spa_t *spa = svd->vdev_spa; in vdev_top_transfer()
981 tvd->vdev_ms_array = svd->vdev_ms_array; in vdev_top_transfer()
982 tvd->vdev_ms_shift = svd->vdev_ms_shift; in vdev_top_transfer()
983 tvd->vdev_ms_count = svd->vdev_ms_count; in vdev_top_transfer()
984 tvd->vdev_top_zap = svd->vdev_top_zap; in vdev_top_transfer()
986 svd->vdev_ms_array = 0; in vdev_top_transfer()
987 svd->vdev_ms_shift = 0; in vdev_top_transfer()
988 svd->vdev_ms_count = 0; in vdev_top_transfer()
989 svd->vdev_top_zap = 0; in vdev_top_transfer()
[all …]
H A Dvdev_label.c1591 vdev_uberblock_sync_list(vdev_t **svd, int svdcount, uberblock_t *ub, int flags) in vdev_uberblock_sync_list() argument
1593 spa_t *spa = svd[0]->vdev_spa; in vdev_uberblock_sync_list()
1600 vdev_uberblock_sync(zio, &good_writes, ub, svd[v], flags); in vdev_uberblock_sync_list()
1612 if (vdev_writeable(svd[v])) { in vdev_uberblock_sync_list()
1613 zio_flush(zio, svd[v]); in vdev_uberblock_sync_list()
1761 vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg) in vdev_config_sync() argument
1763 spa_t *spa = svd[0]->vdev_spa; in vdev_config_sync()
1852 if ((error = vdev_uberblock_sync_list(svd, svdcount, ub, flags)) != 0) { in vdev_config_sync()
H A Ddsl_scan.c4087 dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd) in dsl_scan_io_queue_vdev_xfer() argument
4089 mutex_enter(&svd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
4093 tvd->vdev_scan_io_queue = svd->vdev_scan_io_queue; in dsl_scan_io_queue_vdev_xfer()
4094 svd->vdev_scan_io_queue = NULL; in dsl_scan_io_queue_vdev_xfer()
4099 mutex_exit(&svd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
H A Dspa.c4052 vdev_t *svd[SPA_SYNC_MIN_VDEVS] = { NULL }; local
4061 if (c > 0 && svd[0] == vd)
4068 svd[svdcount++] = vd;
4072 error = vdev_config_sync(svd, svdcount, spa->spa_first_txg);
8520 vdev_t *svd[SPA_SYNC_MIN_VDEVS] = { NULL }; local
8530 if (c > 0 && svd[0] == vd)
8538 svd[svdcount++] = vd;
8542 error = vdev_config_sync(svd, svdcount, txg);
/illumos-gate/usr/src/uts/common/os/
H A Durw.c63 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()
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c1369 struct segvn_data svd; in asmap_step() local
1372 if (seg->s_ops == asmp->asm_segvn_ops && mdb_vread(&svd, in asmap_step()
1373 sizeof (svd), (uintptr_t)seg->s_data) == sizeof (svd)) { in asmap_step()
1375 if (svd.vp != NULL) { in asmap_step()
1376 if (mdb_vnode2path((uintptr_t)svd.vp, map.map_name, in asmap_step()
1379 MDB_TGT_MAPSZ, "[ vnode %p ]", svd.vp); in asmap_step()
/illumos-gate/usr/src/uts/sparc/v9/os/
H A Dsimulator.c859 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()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddsl_scan.h184 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
H A Dvdev.h151 extern int vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg);
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprsubr.c4633 struct segvn_data *svd; in pr_getprot() member
4651 (!reserved && seg->s_ops == &segvn_ops && s.svd != NULL && in pr_getprot()
4652 (s.svd->vp == NULL || s.svd->vp->v_type != VREG) && in pr_getprot()
4653 (s.svd->flags & MAP_NORESERVE)); in pr_getprot()
4662 seg->s_ops == &segvn_ops && s.svd != NULL && s.svd->pageprot == 0) { in pr_getprot()
4663 prot = s.svd->prot; in pr_getprot()