/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_kproc.c | 55 * as if it were a file. 117 struct as *kp_as; /* Proc as address in dump */ 266 * as the virtual address at which is was loaded. 369 * instantiating kp_file objects as we go. 551 kp_vtop(mdb_tgt_t *t, mdb_tgt_as_t as, uintptr_t va, physaddr_t *pap) argument 556 if (as != MDB_TGT_AS_VIRT) 599 * a name such as "puts" will match the puts function in libc instead 983 kp->kp_as = (struct as *)f_as((uintptr_t)proc); 998 (struct as *)(uintptr_ [all...] |
H A D | mdb_kvm.c | 206 * So if symsize is zero, recompute it as the size of .symtab 632 /* Export some of our registers as named variables */ 650 continue; /* Didn't export register as a variable */ 697 kt_aread(mdb_tgt_t *t, mdb_tgt_as_t as, void *buf, argument 704 nbytes, as)) == -1) 711 kt_awrite(mdb_tgt_t *t, mdb_tgt_as_t as, const void *buf, argument 718 nbytes, as)) == -1) 789 kt_vtop(mdb_tgt_t *t, mdb_tgt_as_t as, uintptr_t va, physaddr_t *pap) argument 793 struct as *asp; 797 int (*fptr)(uintptr_t, struct as *, physaddr_ [all...] |
H A D | mdb_modapi.c | 75 mdb_aread(void *buf, size_t nbytes, uintptr_t addr, void *as) argument 77 ssize_t rbytes = mdb_tgt_aread(mdb.m_target, as, buf, nbytes, addr); 86 mdb_awrite(const void *buf, size_t nbytes, uintptr_t addr, void *as) argument 88 return (mdb_tgt_awrite(mdb.m_target, as, buf, nbytes, addr)); 683 mdb_dprintf(MDB_DBG_WALK, "added %s`%s as %s`%s layer\n",
|
H A D | mdb_target.c | 53 * a *software event* as a state transition in the target program (for example, 62 * software event specifiers directly as part of the user interface. Instead, 95 * interest), one target thread is selected as the representative. The 99 * are stopped in sympathy with the representative as soon as possible. Prior 124 * invariants for the respective states are as follows: 392 mdb_tgt_aread(mdb_tgt_t *t, mdb_tgt_as_t as, argument 396 return (t->t_ops->t_aread(t, as, buf, n, addr)); 398 switch ((uintptr_t)as) { 408 return (t->t_ops->t_aread(t, as, bu 412 mdb_tgt_awrite(mdb_tgt_t *t, mdb_tgt_as_t as, const void *buf, size_t n, mdb_tgt_addr_t addr) argument 495 mdb_tgt_vtop(mdb_tgt_t *t, mdb_tgt_as_t as, uintptr_t va, physaddr_t *pap) argument 501 mdb_tgt_readstr(mdb_tgt_t *t, mdb_tgt_as_t as, char *buf, size_t nbytes, mdb_tgt_addr_t addr) argument 535 mdb_tgt_writestr(mdb_tgt_t *t, mdb_tgt_as_t as, const char *buf, mdb_tgt_addr_t addr) argument 646 mdb_tgt_readsym(mdb_tgt_t *t, mdb_tgt_as_t as, void *buf, size_t nbytes, const char *obj, const char *name) argument 658 mdb_tgt_writesym(mdb_tgt_t *t, mdb_tgt_as_t as, const void *buf, size_t nbytes, const char *obj, const char *name) argument [all...] |
/illumos-gate/usr/src/cmd/file/ |
H A D | file.c | 122 static char *as[] = { /* Assembler Pseudo Ops, prepended with '.' */ variable 339 * (as indicated by the last argument to f_mkmtab()), 805 if (lookup(as) == 1) { 829 if (lookup(as) == 1) { 928 * Get the files elf descriptor and process it as an elf or 1314 * A match identifies the file as being 'assembler', 'fortran', 'c', etc. 1344 * position of 'i'. Returns 1 as long as we don't increment i past the 1382 * Returns 1 as long as w [all...] |
/illumos-gate/usr/src/uts/common/fs/dcfs/ |
H A D | dc_vnops.c | 71 #include <vm/as.h> 92 * and marked by fiocompress as a compressed file via a flag in the on-disk 214 static int dc_map(struct vnode *, offset_t, struct as *, caddr_t *, size_t, 216 static int dc_addmap(struct vnode *, offset_t, struct as *, caddr_t, size_t, 218 static int dc_delmap(struct vnode *, offset_t, struct as *, caddr_t, size_t, 587 * it as an argument to other functions. 609 * The B_FREE (as well as the B_DONTNEED) flag is set when the 673 dc_map(struct vnode *vp, offset_t off, struct as *as, caddr_ argument 728 dc_addmap(struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ctp) argument 746 dc_delmap(struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ctp) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_vnops.c | 73 #include <vm/as.h> 119 static int pcfs_map(struct vnode *, offset_t, struct as *, caddr_t *, size_t, 121 static int pcfs_addmap(struct vnode *, offset_t, struct as *, caddr_t, 123 static int pcfs_delmap(struct vnode *, offset_t, struct as *, caddr_t, 370 * starts out as no larger than MAXBSIZE, "int" is 533 * allocated file blocks as well as pages. It's hard 671 * same as the date of last modification then the time 958 * the pcnode. If it has then release the vnode as above. 1515 * read as man 1861 pcfs_map( struct vnode *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument 1924 pcfs_addmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument 1943 pcfs_delmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/portfs/ |
H A D | port_fop.c | 35 * notification. It is implemented as an event source(PORT_SOURCE_FILE) 220 static int port_fop_map(femarg_t *vf, offset_t off, struct as *as, 655 * In case of cleanup, just mark this pfp as inactive so that no 705 * does not find it in the hash table. The object pointer is used as index. 707 * as the evet port can be shared between processes. The file events 888 * The pfp cannot disappear as the port cache lock is held. 955 * Move it to the tail as active once are in the 1325 * If dvp belongs to a different filesystem just ignore it, as hard 1327 * procfs, however, the magic of which we treat semantically as 2125 port_fop_map(femarg_t *vf, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxport, uint_t flags, cred_t *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 72 * will be set to a nonzero value. All boot time allocated memory as 73 * well as static memory is considered off limits to relocation. 91 * physical address as well as the virtual address (e.g. the VA to 117 struct as kas; /* kernel address space */ 136 * heap_lp_end) is set up as a separate vmem arena - "heap_lp_arena". We also 206 * as well as virtual address. 348 * must be created as a KMC_NOHASH cache (i.e. no external slab 389 * mark it as no 582 struct as *as = arg; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | winlockio.c | 44 * between competing processes that directly write to the screen as opposed 86 * Allocate a lock context. This ioctl accepts a key value. as 99 * freed, the lock page is freed as well. 119 * page. These mappings are known as the "lock page" and "unlock page" 134 * The "page number" portion of the sy_ident needs to be passed as the 156 * forward, the client can make as many locks and unlocks as it 175 * to the lock/unlock pages and allowed to continue as well. 206 static int winlocksegmap(dev_t, off_t, struct as *, caddr_t *, off_t, 301 * Instead we use the as pointe 559 winlocksegmap( dev_t dev, off_t off, struct as *as, caddr_t *addr, off_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *cred) argument [all...] |
H A D | mem.c | 116 * kernel memory addresses via the kernel debugger, and -- as we discovered -- 333 mmpagelock(struct as *as, caddr_t va) argument 338 AS_LOCK_ENTER(as, RW_READER); 339 seg = as_segat(as, va); 341 AS_LOCK_EXIT(as); 410 * return value and return EFAULT here as we'd like. 500 struct as *as; local 511 mem_vtop.m_as = (struct as *)(uintptr_ 848 mmsegmap(dev_t dev, off_t off, struct as *as, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred) argument [all...] |
/illumos-gate/usr/src/uts/sun/io/ttymux/ |
H A D | ttymux.c | 549 * Note the lower queue should be enabled as soon as 878 * Mark the lower q as invalid. 1285 case M_IOCDATA: /* not handled as high pri because may need to putbq */ 1722 case M_BREAK: /* we'll eventually see this as a flush */ 1727 * Parity errors are reported upstream as breaks so 1788 case M_BREAK: /* we'll eventually see this as a flush */ 2423 char as[SM_MAX_ABSLEN]; local 2427 "abort-str", as, &len) != DDI_PROP_SUCCESS || 2428 (len = strlen(as)) < SM_MIN_ABSLE [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | iommu.c | 46 #include <vm/as.h> 133 * are 64 bits wide and are defined as uint64_t's. 420 struct as *as = NULL; local 446 as = mp->dmai_object.dmao_obj.virt_obj.v_as; 447 if (as == NULL) 448 as = &kas; 489 ASSERT(as); 490 pfn = hat_getpfnum(as->a_hat, (caddr_t)addr); 1504 struct as *a local [all...] |
/illumos-gate/usr/src/uts/i86xpv/vm/ |
H A D | seg_mf.c | 51 #include <vm/as.h> 122 struct as *as = seg->s_as; local 126 hat_map(as->a_hat, seg->s_base, seg->s_size, HAT_MAP); 138 error = VOP_ADDMAP(VTOCVP(data->vp), 0, as, seg->s_base, seg->s_size, 142 hat_unload(as->a_hat, 312 struct as *as = seg->s_as; local 314 if (AS_ISUNMAPWAIT(as)) { 315 mutex_enter(&as [all...] |
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 489 * Would prefer to specify "from" as the combination: 843 struct as *as, 860 struct as *as, 877 struct as *as, 840 fop_map( vnode_t *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, cred_t *cr, caller_context_t *ct) argument 857 fop_addmap( vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, cred_t *cr, caller_context_t *ct) argument 874 fop_delmap( vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *cr, caller_context_t *ct) argument
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | fs_subr.c | 118 struct as *as, 134 struct as *as, 358 if (nlmid != 0) { /* booted as a cluster */ 361 } else { /* not booted as a cluster */ 720 * shares as well as remote locks, despite its name. 786 /* select one of the styles as current flavor */ 879 * and return the reparse data as nam 116 fs_nosys_map(struct vnode *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument 132 fs_nosys_addmap(struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 59 #include <vm/as.h> 525 * that assumes 32-bit rather than 64-bit alignment as argp is a pointer 694 * can't simply pass a pointer to the structure as 1176 * be set running so long as the /proc agent lwp exists. 1430 * an uninitialized si_zoneid is the same as 1845 struct as *as = p->p_as; local 1873 * Don't let the address range go above as->a_userlimit. 1876 if (vaddr >= (uintptr_t)as->a_userlimit) 1878 if (vaddr + size > (uintptr_t)as 2449 struct as *as; local [all...] |
H A D | prioctl.c | 65 #include <vm/as.h> 533 * be set running so long as the /proc agent lwp exists. 959 struct as *as = p->p_as; local 961 if ((p->p_flag & SSYS) || as == &kas) 965 AS_LOCK_ENTER(as, RW_WRITER); 966 n = prnsegs(as, 0); 967 AS_LOCK_EXIT(as); 979 struct as *as local 1503 struct as *as; local 2586 struct as *as = p->p_as; local 2606 struct as *as = p->p_as; local 3125 struct as *as = p->p_as; local 3342 struct as *as; local 3520 struct as *as = p->p_as; local 3580 struct as *as = p->p_as; local 3641 oprpdsize(struct as *as) argument 3671 oprpdsize32(struct as *as) argument 3704 oprpdread(struct as *as, uint_t hatid, struct uio *uiop) argument 3811 oprpdread32(struct as *as, uint_t hatid, struct uio *uiop) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | watchpoint.c | 54 #include <vm/as.h> 163 struct as *as = p->p_as; local 173 ASSERT(as != &kas); 177 if (avl_numnodes(&as->a_wpage) == 0) 181 * as->a_wpage can only be changed while the process is totally stopped. 195 if ((pwp = avl_find(&as->a_wpage, &tpw, &where)) == NULL) 196 pwp = avl_nearest(&as->a_wpage, where, AVL_AFTER); 199 pwp = AVL_NEXT(&as->a_wpage, pwp)) { 296 AS_LOCK_ENTER(as, RW_WRITE 367 struct as *as = curproc->p_as; local 422 pr_is_watchpage_as(caddr_t addr, enum seg_rw rw, struct as *as) argument 482 struct as *as = curproc->p_as; local [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lgrpsys.c | 44 #include <vm/as.h> 59 struct as *as; local 191 as = curproc->p_as; 193 AS_LOCK_ENTER(as, RW_READER); 194 hat = as->a_hat; 199 if (!as_segat(as, (caddr_t)vaddr)) { 289 AS_LOCK_EXIT(as); 528 * preferred or home lgroup isn't in given pset. Use root lgroup as 632 * which affinity is being set has same affinity as hom [all...] |
H A D | lwp_sobj.c | 63 #include <vm/as.h> 194 * registration, mark it as invalid. 306 * As soon as we store the new lcp, future locking operations will 408 lwpchan_get_mapping(struct as *as, caddr_t addr, caddr_t uaddr, argument 438 if (as_getmemid(as, addr, &memid) != 0) 483 get_lwpchan(struct as *as, caddr_t addr, int type, lwpchan_t *lwpchan, int pool) argument 487 * we just make the first field of the lwpchan be 'as' and 493 lwpchan->lc_wchan0 = (caddr_t)as; [all...] |
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vnops.c | 40 #include <vm/as.h> 288 * dotdot lookup as well. 512 * Indirect looping can be defined as 518 * in the current lookup has as its real vnode 571 * We come here only when we are called with X_l as dvp 596 * distinction is made between any vp as all directory 597 * vnodes contained in dvp are returned as the covered 715 * file we can handle create as a no-op, as expected, 730 * file mounted as th 1095 lo_map( vnode_t *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument 1112 lo_addmap( vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument 1130 lo_delmap( vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | vm_dep.c | 142 struct as *as; local 153 as = &kas; 156 as = p->p_as; 163 if (rw == S_EXEC && AS_TYPE_64BIT(as) && 174 res = as_fault(as->a_hat, as, addr, 1, type, rw); 209 as_rangelock(as); 210 as_purge(as); 211 if (as_gap(as, PAGESIZ 381 valid_usr_range(caddr_t addr, size_t len, uint_t prot, struct as *as, caddr_t userlimit) argument 903 get_color_start(struct as *as) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | gcore.c | 222 mdb_as_t as; local 231 if (mdb_ctf_vread(&as, "struct as", "mdb_as_t", seg->s_as, 0) 236 if (mdb_ctf_vread(&p, "proc_t", "mdb_proc_t", as.a_proc, 0) 474 segtree_addr = as_addr + mdb_ctf_offsetof_by_name("struct as", 607 wp_addr = as_addr + mdb_ctf_offsetof_by_name("struct as", "a_wpage"); 1543 segtree_addr = p->p_as + mdb_ctf_offsetof_by_name("struct as",
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/ |
H A D | mdb_ks.c | 1345 mdb_kproc_asiter(uintptr_t as, argument 1358 return (mdb_pwalk("seg", (mdb_walk_cb_t)asmap_step, &arg, as)); 1460 * be recorded as the first element in dump_pids[]. 1637 * Write the given MAC address as a printable string in the usual colon-
|