/illumos-gate/usr/src/uts/common/os/ |
H A D | lgrp.c | 4100 lgrp_shm_policy_seg_t *newseg; in lgrp_shm_policy_split() local 4117 newseg = kmem_alloc(sizeof (lgrp_shm_policy_seg_t), KM_SLEEP); in lgrp_shm_policy_split() 4118 newseg->shm_policy = seg->shm_policy; in lgrp_shm_policy_split() 4119 newseg->shm_off = off; in lgrp_shm_policy_split() 4120 newseg->shm_size = seg->shm_size - (off - seg->shm_off); in lgrp_shm_policy_split() 4127 avl_insert(tree, newseg, where); in lgrp_shm_policy_split() 4129 return (newseg); in lgrp_shm_policy_split() 4145 lgrp_shm_policy_seg_t *newseg; in lgrp_shm_policy_set() local 4246 newseg = kmem_alloc(sizeof (lgrp_shm_policy_seg_t), in lgrp_shm_policy_set() 4248 newseg->shm_policy.mem_policy = policy; in lgrp_shm_policy_set() [all …]
|
H A D | vmem.c | 529 vmem_seg_t *newseg = vmem_getseg(vmp); in vmem_seg_create() local 531 newseg->vs_start = start; in vmem_seg_create() 532 newseg->vs_end = end; in vmem_seg_create() 533 newseg->vs_type = 0; in vmem_seg_create() 534 newseg->vs_import = 0; in vmem_seg_create() 536 VMEM_INSERT(vprev, newseg, a); in vmem_seg_create() 538 return (newseg); in vmem_seg_create() 559 vmem_seg_t *newseg, *span; in vmem_span_create() local 574 newseg = vmem_seg_create(vmp, span, start, end); in vmem_span_create() 575 vmem_freelist_insert(vmp, newseg); in vmem_span_create() [all …]
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_hole.c | 102 seghole_dup(struct seg *seg, struct seg *newseg) in seghole_dup() argument 112 newseg->s_ops = seg->s_ops; in seghole_dup() 113 newseg->s_data = newshd; in seghole_dup() 114 newseg->s_flags = S_HOLE; in seghole_dup()
|
H A D | seg_umap.c | 160 segumap_dup(struct seg *seg, struct seg *newseg) in segumap_dup() argument 172 newseg->s_ops = seg->s_ops; in segumap_dup() 173 newseg->s_data = newsud; in segumap_dup()
|
H A D | vm_as.c | 417 as_addseg(struct as *as, struct seg *newseg) in as_addseg() argument 433 if (as->a_lastgaphl->s_base > newseg->s_base) { in as_addseg() 441 if (hseg && lseg && lseg->s_base < newseg->s_base && in as_addseg() 442 hseg->s_base > newseg->s_base) { in as_addseg() 443 avl_insert_here(&as->a_segtree, newseg, lseg, in as_addseg() 446 as->a_seglast = newseg; in as_addseg() 452 addr = newseg->s_base; in as_addseg() 453 eaddr = addr + newseg->s_size; in as_addseg() 478 as->a_seglast = newseg; in as_addseg() 479 avl_insert(&as->a_segtree, newseg, where); in as_addseg() [all …]
|
H A D | seg_spt.c | 75 segspt_badop_dup(struct seg *seg __unused, struct seg *newseg __unused) in segspt_badop_dup() 245 static int segspt_shmdup(struct seg *seg, struct seg *newseg); 2407 segspt_shmdup(struct seg *seg, struct seg *newseg) in segspt_shmdup() argument 2419 newseg->s_data = (void *)shmd_new; in segspt_shmdup() 2423 newseg->s_ops = &segspt_shmops; in segspt_shmdup() 2424 newseg->s_szc = seg->s_szc; in segspt_shmdup() 2435 if ((error = hat_share(newseg->s_as->a_hat, in segspt_shmdup() 2436 newseg->s_base, shmd->shm_sptas->a_hat, SEGSPTADDR, in segspt_shmdup() 2444 return (hat_share(newseg->s_as->a_hat, newseg->s_base, in segspt_shmdup()
|
H A D | seg_dev.c | 252 struct seg *newseg); 461 segdev_dup(struct seg *seg, struct seg *newseg) in segdev_dup() argument 483 newseg->s_ops = seg->s_ops; in segdev_dup() 484 newseg->s_data = (void *)newsdp; in segdev_dup() 502 npages = seg_pages(newseg); in segdev_dup() 517 (devmap_handle_t **)&newsdp->devmap_data, newseg); in segdev_dup() 533 newsdp->offset, newseg->s_as, in segdev_dup() 534 newseg->s_base, newseg->s_size, newsdp->prot, in segdev_dup() 543 struct seg *newseg) in devmap_handle_dup() argument 556 newdhp->dh_seg = newseg; in devmap_handle_dup()
|
H A D | as.h | 270 int as_addseg(struct as *as, struct seg *newseg);
|
H A D | seg_vn.c | 102 static int segvn_dup(struct seg *seg, struct seg *newseg); 1505 segvn_dup_pages(struct seg *seg, struct seg *newseg) in segvn_dup_pages() argument 1515 struct segvn_data *newsvd = (struct segvn_data *)newseg->s_data; in segvn_dup_pages() 1546 pp = anon_zero(newseg, addr, &newap, in segvn_dup_pages() 1556 pp = anon_private(&newap, newseg, addr, prot, in segvn_dup_pages() 1575 segvn_dup(struct seg *seg, struct seg *newseg) in segvn_dup() argument 1585 ASSERT(newseg->s_as->a_proc->p_parent == curproc); in segvn_dup() 1605 newseg->s_ops = &segvn_ops; in segvn_dup() 1606 newseg->s_data = (void *)newsvd; in segvn_dup() 1607 newseg->s_szc = seg->s_szc; in segvn_dup() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | seg_vmm.c | 184 segvmm_dup(struct seg *seg, struct seg *newseg) in segvmm_dup() argument 196 newseg->s_ops = seg->s_ops; in segvmm_dup() 197 newseg->s_data = newsvmd; in segvmm_dup() 212 newseg); in segvmm_dup() 214 newseg->s_ops = NULL; in segvmm_dup() 215 newseg->s_data = NULL; in segvmm_dup()
|
/illumos-gate/usr/src/uts/i86xpv/vm/ |
H A D | seg_mf.c | 153 segmf_dup(struct seg *seg, struct seg *newseg) in segmf_dup() argument 157 pgcnt_t npages = seg_pages(newseg); in segmf_dup() 160 ndata = segmf_data_zalloc(newseg); in segmf_dup() 172 return (VOP_ADDMAP(VTOCVP(ndata->vp), 0, newseg->s_as, in segmf_dup() 173 newseg->s_base, newseg->s_size, ndata->prot, ndata->maxprot, in segmf_dup()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | range_tree.c | 480 range_seg_max_t newseg; in range_tree_remove_impl() local 481 rs_set_start(&newseg, rt, end); in range_tree_remove_impl() 482 rs_set_end_raw(&newseg, rt, rs_get_end_raw(rs, rt)); in range_tree_remove_impl() 483 rs_set_fill(&newseg, rt, rs_get_end(rs, rt) - end); in range_tree_remove_impl() 484 range_tree_stat_incr(rt, &newseg); in range_tree_remove_impl() 491 zfs_btree_add_idx(&rt->rt_root, &newseg, &where); in range_tree_remove_impl() 493 zfs_btree_add(&rt->rt_root, &newseg); in range_tree_remove_impl() 496 rt->rt_ops->rtop_add(rt, &newseg, rt->rt_arg); in range_tree_remove_impl()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | vmem.c | 399 vmem_seg_t *newseg = vmem_getseg(vmp); in vmem_seg_create() local 401 newseg->vs_start = start; in vmem_seg_create() 402 newseg->vs_end = end; in vmem_seg_create() 403 newseg->vs_type = 0; in vmem_seg_create() 404 newseg->vs_import = 0; in vmem_seg_create() 406 VMEM_INSERT(vprev, newseg, a); in vmem_seg_create() 408 return (newseg); in vmem_seg_create() 430 vmem_seg_t *newseg, *span; in vmem_span_create() local 465 newseg = vmem_seg_create(vmp, span, start, end); in vmem_span_create() 466 vmem_freelist_insert(vmp, newseg); in vmem_span_create() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/vm/ |
H A D | seg_nf.c | 61 static int segnf_dup(struct seg *seg, struct seg *newseg); 295 segnf_dup(struct seg *seg, struct seg *newseg) in segnf_dup() argument
|