/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_vn.c | 336 * replica's are represented by anon maps (amp). There's one amp per text file 337 * region per lgroup. A process chooses the amp for each of its text mappings 340 * mapping share the same amp. amp's are looked up in svntr_hashtab hash table 343 * forcing COW faults from vnode to amp and mapping amp pages instead of vnode 344 * pages. Replication amp is assigned to a segment when it gets its first 346 * rechecks periodically if the process still maps an amp local to the main 347 * thread. If not async thread forces process to remap to an amp i 548 struct anon_map *amp; local 1576 struct anon_map *amp; local 1860 struct anon_map *amp; local 2418 struct anon_map *amp; local 2572 struct anon_map *amp; local 2724 struct anon_map *amp; local 3829 struct anon_map *amp = svd->amp; local 4638 struct anon_map *amp = svd->amp; local 4936 struct anon_map *amp; local 5619 struct anon_map *amp; local 5898 struct anon_map *amp; local 6074 struct anon_map *amp = svd->amp; local 6356 struct anon_map *amp = svd->amp; local 6477 struct anon_map *amp = svd->amp; local 6974 struct anon_map *amp; local 7076 struct anon_map *amp; local 7257 struct anon_map *amp; local 7478 struct anon_map *amp; /* XXX - for locknest */ local 7643 struct anon_map *amp; local 8069 struct anon_map *amp; local 8701 struct anon_map *amp; local 8816 struct anon_map *amp; local 9538 amp_t *amp = (amp_t *)ptag; local 9591 struct anon_map *amp; local 9678 struct anon_map *amp; local 9747 struct anon_map *amp; local 10080 struct anon_map *amp = svntrp->tr_amp[i]; local 10218 struct anon_map *amp; local [all...] |
H A D | seg_spt.c | 186 sptcreate(size_t size, struct seg **sptseg, struct anon_map *amp, argument 208 sptcargs.amp = amp; 225 sptdestroy(struct as *as, struct anon_map *amp) argument 231 (void) as_unmap(as, SEGSPTADDR, amp->size); 299 struct anon_map *amp = shmd->shm_amp; local 315 ANON_LOCK_ENTER(&->a_rwlock, RW_READER); 318 anon_array_enter(amp, anon_index, &cookie); 319 ap = anon_get_ptr(amp->ahp, anon_index); 336 ANON_LOCK_EXIT(& 376 struct anon_map *amp = sptcargs->amp; local 621 struct anon_map *amp; local 781 struct anon_map *amp; local 832 struct anon_map *amp; local 1189 struct anon_map *amp; local 1585 struct anon_map *amp; /* XXX - for locknest */ local 2019 struct anon_map *amp; /* XXX - for locknest */ local 2261 struct anon_map *amp = shmd->shm_amp; local 2329 struct anon_map *amp = sptd->spt_amp; local 2572 struct anon_map *amp = sptd->spt_amp; local 2854 struct anon_map *amp; local 3019 struct anon_map *amp = shmd->shm_amp; local 3059 struct anon_map *amp; local [all...] |
H A D | vm_anon.c | 176 struct anon_map *amp = buf; local 178 rw_init(&->a_rwlock, NULL, RW_DEFAULT, NULL); 179 cv_init(&->a_purgecv, NULL, CV_DEFAULT, NULL); 180 mutex_init(&->a_pmtx, NULL, MUTEX_DEFAULT, NULL); 181 mutex_init(&->a_purgemtx, NULL, MUTEX_DEFAULT, NULL); 189 struct anon_map *amp = buf; local 191 rw_destroy(&->a_rwlock); 192 cv_destroy(&->a_purgecv); 193 mutex_destroy(&->a_pmtx); 194 mutex_destroy(& 1673 anon_disclaim(struct anon_map *amp, ulong_t index, size_t size, uint_t behav, pgcnt_t *purged) argument 1972 anon_map_getpages( struct anon_map *amp, ulong_t start_idx, uint_t szc, struct seg *seg, caddr_t addr, uint_t prot, uint_t *protp, page_t *ppa[], uint_t *ppa_szc, struct vpage vpage[], enum seg_rw rw, int brkcow, int anypgsz, int pgflags, struct cred *cred) argument 2541 anon_map_privatepages( struct anon_map *amp, ulong_t start_idx, uint_t szc, struct seg *seg, caddr_t addr, uint_t prot, page_t *ppa[], struct vpage vpage[], int anypgsz, int pgflags, struct cred *cred) argument 2844 anon_map_createpages( struct anon_map *amp, ulong_t start_index, size_t len, page_t *ppa[], struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cred) argument 3189 anon_map_demotepages( struct anon_map *amp, ulong_t start_idx, struct seg *seg, caddr_t addr, uint_t prot, struct vpage vpage[], struct cred *cred) argument 3290 anon_shmap_free_pages(struct anon_map *amp, ulong_t sidx, size_t len) argument 3357 anonmap_purge(struct anon_map *amp) argument 3404 struct anon_map *amp; local 3434 anonmap_free(struct anon_map *amp) argument 3602 anon_array_enter(struct anon_map *amp, ulong_t an_idx, anon_sync_obj_t *sobj) argument 3632 anon_array_try_enter(struct anon_map *amp, ulong_t an_idx, anon_sync_obj_t *sobj) argument [all...] |
H A D | seg_spt.h | 46 struct anon_map *amp; member in struct:segspt_crargs 101 int sptcreate(size_t size, struct seg **sptseg, struct anon_map *amp,
|
H A D | vm_seg.c | 85 pcache_link_t p_plink; /* per segment/amp list */ 86 void *p_htag0; /* segment/amp pointer */ 219 * htag0 argument can be a seg or amp pointer. 231 * htag0 argument can be a seg or amp pointer. 418 * for non wired shadow lists. The caller already holds a per seg/amp list 459 * active count. If amp is not NULL use amp as a lookup tag otherwise use seg 463 seg_plookup(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, argument 482 htag0 = (amp == NULL ? (void *)seg : (void *)amp); 524 seg_pinactive(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, struct page **pp, enum seg_rw rw, uint_t flags, seg_preclaim_cbfunc_t callback) argument 739 seg_pinsert_check(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, uint_t flags) argument 800 seg_pinsert(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, size_t wlen, struct page **pp, enum seg_rw rw, uint_t flags, seg_preclaim_cbfunc_t callback) argument 1269 seg_ppurge(struct seg *seg, struct anon_map *amp, uint_t flags) argument [all...] |
H A D | seg.h | 165 extern struct page **seg_plookup(struct seg *seg, struct anon_map *amp, 167 extern void seg_pinactive(struct seg *seg, struct anon_map *amp, 171 extern void seg_ppurge(struct seg *seg, struct anon_map *amp, 175 extern int seg_pinsert_check(struct seg *seg, struct anon_map *amp, 177 extern int seg_pinsert(struct seg *seg, struct anon_map *amp,
|
H A D | seg_vn.h | 61 struct anon_map *amp; /* anon mapping to map to */ member in struct:segvn_crargs 77 * amp 96 struct anon_map *amp; /* pointer to anon share structure, if needed */ member in struct:segvn_data 227 ulong_t tr_stat_newamp; /* number of new amp allocs for TR */
|
H A D | seg_kp.c | 89 struct segkp_data **tkpd, struct anon_map *amp); 356 struct anon_map *amp) 360 ASSERT(amp != NULL); 362 if (segkp_get_internal(seg, len, flags, &kpd, amp) != NULL) { 388 struct anon_map *amp) 407 ASSERT(((flags & KPD_HASAMP) == 0) == (amp == NULL)); 448 if (amp != NULL) { 455 kpd->kp_anon = amp->ahp; 523 if (amp != NULL) 524 ANON_LOCK_ENTER(& 352 segkp_get_withanonmap( struct seg *seg, size_t len, uint_t flags, struct anon_map *amp) argument 383 segkp_get_internal( struct seg *seg, size_t len, uint_t flags, struct segkp_data **tkpd, struct anon_map *amp) argument [all...] |
H A D | anon.h | 298 * szc in the anon_map structure. For MAP_SHARED, the amp->szc is either 300 * the amp->szc could be anything in [0, page_num_pagesizes() - 1]. 311 struct kshmid *a_sp; /* kshmid if amp backs sysV, or NULL */ 316 kmutex_t a_pmtx; /* protects amp's pcache list */ 317 pcache_link_t a_phead; /* head of amp's pcache list */ 337 #define ANON_ARRAY_HASH(amp, idx)\ 341 ((uintptr_t)(amp) >> ANON_MAP_SHIFT)) & (ANON_LOCKSIZE - 1))
|
H A D | vm_usage.c | 60 * - Lookup anons in the amp. 66 * - For address ranges without anons in the amp: 72 * - Lookup pages in the shared amp or vnode. 80 * amp->swresv == 0. 92 * - If seg is anon, shared, and amp->swresv != 0 93 * - For address ranges in amp not previously visited for 113 * - per shared amp (entity->vme_amp_hash) 184 pgcnt_t vmb_start; /* page offset in vnode/amp on which bound starts */ 185 pgcnt_t vmb_end; /* page offset in vnode/amp on which bound ends */ 191 * key is address of vnode or amp 896 vmu_amp_update_incore_bounds(avl_tree_t *tree, struct anon_map *amp, vmu_bound_t **first, vmu_bound_t **last, boolean_t incore) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | schedctl.c | 492 struct anon_map *amp; local 500 if ((error = schedctl_getpage(&, &kaddr)) != 0) { 504 if ((error = schedctl_map(amp, &base, kaddr)) != 0) { 505 schedctl_freepage(amp, kaddr); 514 pagep->spc_amp = amp; 579 schedctl_map(struct anon_map *amp, caddr_t *uaddrp, caddr_t kaddr) argument 603 vn_a.amp = amp; 624 struct anon_map *amp; local 631 amp 662 schedctl_freepage(struct anon_map *amp, caddr_t kaddr) argument [all...] |
H A D | shm.c | 127 static int shmem_lock(kshmid_t *sp, struct anon_map *amp); 128 static void shmem_unlock(kshmid_t *sp, struct anon_map *amp); 543 crargs.amp = sp->shm_amp; 892 * unreserving the above anon, and freeing the below amp. 1124 lock_again(size_t npages, kshmid_t *sp, struct anon_map *amp) argument 1134 ANON_LOCK_ENTER(&->a_rwlock, RW_READER); 1137 anon_array_enter(amp, anon_idx, &cookie); 1138 ap = anon_get_ptr(amp->ahp, anon_idx); 1153 ANON_LOCK_EXIT(&->a_rwlock); 1162 shmem_lock(kshmid_t *sp, struct anon_map *amp) argument 1201 shmem_unlock(kshmid_t *sp, struct anon_map *amp) argument 1257 struct anon_map *amp = sp->shm_amp; local [all...] |
H A D | lgrp.c | 3559 lgrp_shm_policy_get(struct anon_map *amp, ulong_t anon_index, vnode_t *vp, argument 3577 if (amp) { 3578 ASSERT(amp->refcnt != 0); 3579 shm_locality = amp->locality; 3895 lgrp_shm_policy_init(struct anon_map *amp, vnode_t *vp) argument 3904 if (amp) { 3905 ANON_LOCK_ENTER(&->a_rwlock, RW_WRITER); 3906 if (amp->locality == NULL) { 3912 ANON_LOCK_EXIT(&->a_rwlock); 3917 shm_locality->loc_count = 1; /* not used for amp */ 4007 lgrp_shm_policy_fini(struct anon_map *amp, vnode_t *vp) argument 4128 lgrp_shm_policy_set(lgrp_mem_policy_t policy, struct anon_map *amp, ulong_t anon_index, vnode_t *vp, u_offset_t vn_off, size_t len) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | libs.c | 65 process_member(Ar_mem *amp, const char *name, Sym_desc *sdp, Ofl_desc *ofl) argument 78 if (amp->am_syms == NULL) { 83 while (scn = elf_nextscn(amp->am_elf, scn)) { 86 MSG_INTL(MSG_ELF_GETSHDR), amp->am_path); 95 amp->am_path); 106 if ((scn = elf_getscn(amp->am_elf, (size_t)shdr->sh_link)) == 109 amp->am_path); 114 amp->am_path); 123 amp->am_syms = syms; 124 amp 269 ld_ar_member(Ar_desc * adp, Elf_Arsym * arsym, Ar_aux * aup, Ar_mem * amp) argument 491 Ar_mem *amp; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/ |
H A D | elf32_freebsd.c | 45 static int elf32_exec(struct preloaded_file *amp); 46 static int elf32_obj_exec(struct preloaded_file *amp);
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | elf32_freebsd.c | 42 static int elf32_exec(struct preloaded_file *amp); 43 static int elf32_obj_exec(struct preloaded_file *amp);
|
H A D | elf64_freebsd.c | 43 static int elf64_exec(struct preloaded_file *amp); 44 static int elf64_obj_exec(struct preloaded_file *amp);
|
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/ |
H A D | elf32_freebsd.c | 42 static int elf32_exec(struct preloaded_file *amp); 43 static int elf32_obj_exec(struct preloaded_file *amp);
|
H A D | elf64_freebsd.c | 42 static int elf64_exec(struct preloaded_file *amp); 43 static int elf64_obj_exec(struct preloaded_file *amp);
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/arm64/ |
H A D | exec.c | 55 static int elf64_exec(struct preloaded_file *amp); 56 static int elf64_obj_exec(struct preloaded_file *amp);
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_output.c | 87 uint_t q, amp, amp2; local 95 amp = (uint_t)ABS(chbufs[0][t]); 99 if (amp2 > amp) 100 amp = amp2; 103 amp >>= 8; 106 if (amp > 0x7FFF) 107 q = 0x7FFF0000 / amp;
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/amd64/ |
H A D | elf64_freebsd.c | 57 static int elf64_exec(struct preloaded_file *amp); 58 static int elf64_obj_exec(struct preloaded_file *amp);
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_error.c | 54 mblk_t *amp; local 62 amp = allocb(alen, BPRI_MED); 63 if (amp == NULL) { 67 amp->b_wptr = amp->b_rptr + alen; 70 acp = (sctp_chunk_hdr_t *)amp->b_rptr; 77 linkb(mp, amp);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | memory.c | 1273 struct anon_map amp; local 1285 if (svd.amp == NULL) { 1290 amp_addr = (uintptr_t)svd.amp; 1291 if (mdb_vread(&, sizeof (amp), amp_addr) == -1) { 1292 mdb_warn("segvn_anon walk: unable to read amp %p for " 1302 if ((seg.s_size + (svd.anon_index << PAGESHIFT)) > amp.size) { 1413 if (svd->amp == NULL && svd->vp == NULL) { 1417 } else if (svd->amp == NULL && 1447 } else if (svd->amp ! [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gcore.h | 114 uintptr_t amp; member in struct:mdb_segvn_data
|