Home
last modified time | relevance | path

Searched refs:as (Results 1 – 25 of 1555) sorted by relevance

12345678910>>...63

/illumos-gate/usr/src/uts/common/vm/
H A Das.h107 struct as { struct
138 #define AS_ISPGLCK(as) ((as)->a_flags & AS_PAGLCK) argument
240 #define AS_LOCK_EXIT(as) rw_exit(&(as)->a_lock) argument
264 void as_rangelock(struct as *as);
265 void as_rangeunlock(struct as *as);
267 void as_free(struct as *as);
270 int as_addseg(struct as *as, struct seg *newseg);
282 void as_purge(struct as *as);
290 size_t as_swapout(struct as *as);
302 void as_setwatch(struct as *as);
[all …]
H A Dvm_as.c385 as_verify(struct as *as) in as_verify() argument
550 as_rangelock(struct as *as) in as_rangelock() argument
563 as_rangeunlock(struct as *as) in as_rangeunlock() argument
589 as_avlinit(struct as *as) in as_avlinit() argument
601 struct as *as = buf; in as_constructor() local
614 struct as *as = buf; in as_destructor() local
637 struct as *as; in as_alloc() local
671 as_free(struct as *as) in as_free() argument
1809 as_purge(struct as *as) in as_purge() argument
2108 as_swapout(struct as *as) in as_swapout() argument
[all …]
H A Dhat_refmod.c77 hat_resvstat(size_t chunk, struct as *as, caddr_t addr) in hat_resvstat() argument
89 hat_startstat(struct as *as) in hat_startstat() argument
133 as->a_vbits |= id; in hat_startstat()
149 hat_setstat(struct as *as, caddr_t addr, size_t len, uint_t rmbits) in hat_setstat() argument
182 newbits = (vbits ^ as->a_vbits) & as->a_vbits; in hat_setstat()
194 hrm->hrm_as = as; in hat_setstat()
211 hat_freestat(struct as *as, int id) in hat_freestat() argument
221 as->a_vbits = 0; in hat_freestat()
372 struct as *as = hrm->hrm_as; in hrm_link() local
376 as->a_hrm = hrm; in hrm_link()
[all …]
H A Dvm_rm.c71 rm_asrss(as) in rm_asrss() argument
72 register struct as *as; in rm_asrss()
74 if (as != (struct as *)NULL && as != &kas)
75 return ((size_t)btop(hat_get_mapped_size(as->a_hat)));
88 rm_pctmemory(struct as *as) in rm_pctmemory() argument
91 ulong_t num = (ulong_t)rm_asrss(as) << (PAGESHIFT-1); in rm_pctmemory()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Daggsum.c85 bzero(as, sizeof (*as)); in aggsum_init()
86 as->as_lower_bound = as->as_upper_bound = value; in aggsum_init()
98 aggsum_fini(aggsum_t *as) in aggsum_fini() argument
102 kmem_free(as->as_buckets, as->as_numbuckets * sizeof (aggsum_bucket_t)); in aggsum_fini()
139 aggsum_value(aggsum_t *as) in aggsum_value() argument
144 if (as->as_lower_bound == as->as_upper_bound) { in aggsum_value()
145 rv = as->as_lower_bound; in aggsum_value()
159 VERIFY3U(as->as_lower_bound, ==, as->as_upper_bound); in aggsum_value()
160 rv = as->as_lower_bound; in aggsum_value()
187 &as->as_buckets[CPU_SEQID % as->as_numbuckets]; in aggsum_add()
[all …]
/illumos-gate/usr/src/lib/crypt_modules/bsdbf/
H A Darc4random.c79 as->i = (as->i + 1);
80 si = as->s[as->i];
82 as->s[as->i] = as->s[as->j];
83 as->s[as->j] = si;
85 as->j = as->i;
116 as->i = (as->i + 1);
117 si = as->s[as->i];
118 as->j = (as->j + si);
119 sj = as->s[as->j];
120 as->s[as->i] = sj;
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkstemp.c70 if (as == NULL || *as == '\0') in libc_mkstemps()
73 len = (int)strlen(as); in libc_mkstemps()
75 (void) strcpy(tstr, as); in libc_mkstemps()
90 mkret = libc_mktemps(as, slen); in libc_mkstemps()
116 (void) strcpy(as, tstr); in libc_mkstemps()
121 mkstemp(char *as) in mkstemp() argument
123 return (libc_mkstemps(as, 0, 0)); in mkstemp()
127 mkstemps(char *as, int slen) in mkstemps() argument
129 return (libc_mkstemps(as, slen, 0)); in mkstemps()
133 mkostemp(char *as, int flags) in mkostemp() argument
[all …]
H A Dmktemp.c98 libc_mktemps(char *as, int slen) in libc_mktemps() argument
117 if (as == NULL || *as == '\0') /* If the string passed is null then */ in libc_mktemps()
143 len = (int)strlen(as); in libc_mktemps()
147 s = as + (len - 1); in libc_mktemps()
166 s = as + len; in libc_mktemps()
183 lstat64(as, &buf) == -1 && errno == ENOENT) { in libc_mktemps()
185 return (as); in libc_mktemps()
208 if (lstat64(as, &buf) == -1) { in libc_mktemps()
215 return (as); in libc_mktemps()
226 *as = '\0'; in libc_mktemps()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dmemcntl.c60 struct as *as = ttoproc(curthread)->p_as; in memcntl() local
192 as_rangelock(as); in memcntl()
238 as_rangeunlock(as); in memcntl()
254 as_rangeunlock(as); in memcntl()
261 as_rangeunlock(as); in memcntl()
270 as_rangeunlock(as); in memcntl()
284 as_rangeunlock(as); in memcntl()
294 as_rangeunlock(as); in memcntl()
311 as_rangeunlock(as); in memcntl()
325 as_rangeunlock(as); in memcntl()
[all …]
/illumos-gate/usr/src/lib/libbsm/
H A Daudit_event.txt85 18:AUE_ACCT:acct(2):as
117 50:AUE_ADJTIME:adjtime(2):as
129 62:AUE_MOUNT:mount(2):as
242 201:AUE_STIME:old stime(2):as
283 239:AUE_SYSINFO:sysinfo(2):as
309 262:AUE_P_ONLINE:p_online(2):as
311 264:AUE_INST_SYNC:inst_sync(2):as
315 268:AUE_UMOUNT2:umount2(2):as
336 288:AUE_NTP_ADJTIME:ntp_adjtime(2):as
414 6187:AUE_printer_add:add printer:as
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_as.c35 av1394_as_init(av1394_as_t *as) in av1394_as_init() argument
37 as->as_end = 0; in av1394_as_init()
41 av1394_as_fini(av1394_as_t *as) in av1394_as_fini() argument
43 as->as_end = 0; in av1394_as_fini()
50 av1394_as_alloc(av1394_as_t *as, size_t size) in av1394_as_alloc() argument
54 addr = as->as_end; in av1394_as_alloc()
55 as->as_end += size; in av1394_as_alloc()
61 av1394_as_free(av1394_as_t *as, off_t addr) in av1394_as_free() argument
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetarsym.c157 as->as_off = get8(off); in arsym()
159 as->as_off = get4(off); in arsym()
160 as->as_name = str; in arsym()
161 as->as_hash = elf_hash(str); in arsym()
162 ++as; in arsym()
168 as->as_name = NULL; in arsym()
169 as->as_off = 0; in arsym()
170 as->as_hash = ~(unsigned long)0L; in arsym()
179 Byte *as; in elf_getarsym() local
194 if ((as = (Byte *)elf->ed_arsym) == 0) { in elf_getarsym()
[all …]
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dselect6.test87 FROM (SELECT count(*) as p , y as q FROM t1 GROUP BY y) AS a,
88 (SELECT max(x) as r, y as s FROM t1 GROUP BY y) as b
95 FROM (SELECT count(*) as p , y as q FROM t1 GROUP BY y) AS a,
96 (SELECT max(x) as r, y as s, min(x)+y FROM t1 GROUP BY y) as b
143 FROM (SELECT count(*) as p , b as q FROM t2 GROUP BY b) AS a,
144 (SELECT max(a) as r, b as s FROM t2 GROUP BY b) as b
151 FROM (SELECT count(*) as p , b as q FROM t2 GROUP BY q) AS a,
152 (SELECT max(a) as r, b as s FROM t2 GROUP BY s) as b
166 FROM (SELECT count(*) as p , b as q FROM t2 GROUP BY q) AS a,
167 (SELECT max(a) as r, b as s FROM t2 GROUP BY s) as b
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Durw.c130 mapin(struct as *as, caddr_t addr, int writing) in mapin() argument
143 pfnum = hat_getpfnum(as->a_hat, addr); in mapin()
169 mapout(struct as *as, caddr_t addr, caddr_t vaddr, int writing) in mapout() argument
194 struct as *as = p->p_as; in urw() local
202 AS_LOCK_ENTER(as, RW_WRITER); in urw()
206 AS_LOCK_EXIT(as); in urw()
224 AS_LOCK_EXIT(as); in urw()
247 AS_LOCK_EXIT(as); in urw()
261 vaddr = mapin(as, addr, writing); in urw()
298 mapout(as, addr, vaddr, writing); in urw()
[all …]
H A Dgrow.c192 struct as *as = p->p_as; in brk_internal() local
319 struct as *as = p->p_as; in grow() local
329 as_rangelock(as); in grow()
336 as_rangeunlock(as); in grow()
345 (void) as_fault(as->a_hat, as, p->p_usrstack - newsize, in grow()
546 choose_addr(struct as *as, caddr_t *addrp, size_t len, offset_t off, in choose_addr() argument
646 struct as *as = curproc->p_as; in smmap_common() local
985 struct as *as = p->p_as; in munmap() local
1007 struct as *as = curproc->p_as; in mprotect() local
1014 switch (valid_usr_range(addr, len, prot, as, as->a_userlimit)) { in mprotect()
[all …]
H A Dmmapobj.c538 struct as *as = curproc->p_as; in mmapobj_unmap() local
637 struct as *as = p->p_as; in mmapobj_lookup_start_addr() local
648 as_rangelock(as); in mmapobj_lookup_start_addr()
659 valid_usr_range(base, len, PROT_ALL, as, as->a_userlimit) != in mmapobj_lookup_start_addr()
711 struct as *as = p->p_as; in mmapobj_alloc_start_addr() local
865 valid_usr_range(base, len, PROT_ALL, as, as->a_userlimit) != in mmapobj_alloc_start_addr()
899 struct as *as = curproc->p_as; in mmapobj_map_flat() local
1008 struct as *as = curproc->p_as; in mmapobj_map_ptload() local
1204 struct as *as = curproc->p_as; in mmapobj_map_elf() local
1454 struct as *as = curproc->p_as; in check_exec_addrs() local
[all …]
H A Dshm.c260 struct as *as = pp->p_as; in shmat() local
312 as_rangelock(as); in shmat()
380 as_purge(as); in shmat()
393 as, as->a_userlimit) != RANGE_OKAY) { in shmat()
446 as_purge(as); in shmat()
474 as_rangeunlock(as); in shmat()
529 as_purge(as); in shmat()
551 as_rangeunlock(as); in shmat()
1165 struct as *as; in shmem_lock() local
1175 as = as_alloc(); in shmem_lock()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fmt.c235 nbytes = mdb_tgt_readstr(t, as, buf, BUFSIZ, addr); in fmt_rawstr()
265 nbytes = mdb_tgt_readstr(t, as, buf, BUFSIZ, addr); in fmt_escstr()
414 if (as == MDB_TGT_AS_VIRT) in fmt_instr()
415 as = MDB_TGT_AS_VIRT_I; in fmt_instr()
418 naddr = mdb_dis_ins2str(mdb.m_disasm, t, as, in fmt_instr()
437 if (as == MDB_TGT_AS_VIRT) in fmt_dotinstr()
438 as = MDB_TGT_AS_VIRT_I; in fmt_dotinstr()
445 naddr = mdb_dis_ins2str(mdb.m_disasm, t, as, in fmt_dotinstr()
715 mdb_fmt_print(mdb_tgt_t *t, mdb_tgt_as_t as, in mdb_fmt_print() argument
748 addr = funcp(t, as, addr, cnt); in mdb_fmt_print()
[all …]
/illumos-gate/usr/src/uts/i86xpv/io/
H A Dprivcmd.c134 struct as *as = curproc->p_as; in do_privcmd_mmap() local
172 AS_LOCK_ENTER(as, RW_READER); in do_privcmd_mmap()
179 AS_LOCK_EXIT(as); in do_privcmd_mmap()
209 struct as *as = curproc->p_as; in do_privcmd_mmapbatch() local
222 AS_LOCK_ENTER(as, RW_READER); in do_privcmd_mmapbatch()
223 if ((seg = as_findseg(as, addr, 0)) == NULL || in do_privcmd_mmapbatch()
263 AS_LOCK_EXIT(as); in do_privcmd_mmapbatch()
306 privcmd_segmap(dev_t dev, off_t off, struct as *as, caddr_t *addrp, in privcmd_segmap() argument
315 as_rangelock(as); in privcmd_segmap()
326 (void) as_unmap(as, *addrp, len); in privcmd_segmap()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtesc.c48 fmtquote(const char* as, const char* qb, const char* qe, size_t n, int flags) in fmtquote() argument
50 register unsigned char* s = (unsigned char*)as; in fmtquote()
225 fmtnesq(const char* as, const char* qs, size_t n) in fmtnesq() argument
227 return fmtquote(as, NiL, qs, n, 0); in fmtnesq()
235 fmtesq(const char* as, const char* qs) in fmtesq() argument
237 return fmtquote(as, NiL, qs, strlen((char*)as), 0); in fmtesq()
245 fmtesc(const char* as) in fmtesc() argument
247 return fmtquote(as, NiL, NiL, strlen((char*)as), 0); in fmtesc()
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_vm.c159 gfxp_va2pa(struct as *as, caddr_t addr, uint64_t *pa) in gfxp_va2pa() argument
163 *pa = pa_to_ma(pfn_to_pa(hat_getpfnum(as->a_hat, addr))); in gfxp_va2pa()
165 *pa = pfn_to_pa(hat_getpfnum(as->a_hat, addr)); in gfxp_va2pa()
212 struct as *as = ttoproc(curthread)->p_as; in gfxp_mlock_user_memory() local
218 if (valid_usr_range(address, length, 0, as, as->a_userlimit) != in gfxp_mlock_user_memory()
222 error = as_ctl(as, address, length, MC_LOCK, 0, 0, NULL, 0); in gfxp_mlock_user_memory()
232 struct as *as = ttoproc(curthread)->p_as; in gfxp_munlock_user_memory() local
238 if (valid_usr_range(address, length, 0, as, as->a_userlimit) != in gfxp_munlock_user_memory()
242 error = as_ctl(as, address, length, MC_UNLOCK, 0, 0, NULL, 0); in gfxp_munlock_user_memory()
H A Dgfxp_segmap.c58 gfxp_ddi_segmap_setup(dev_t dev, off_t offset, struct as *as, caddr_t *addrp, in gfxp_ddi_segmap_setup() argument
120 as_rangelock(as); in gfxp_ddi_segmap_setup()
128 as_rangeunlock(as); in gfxp_ddi_segmap_setup()
135 (void) as_unmap(as, *addrp, len); in gfxp_ddi_segmap_setup()
152 error = as_map(as, *addrp, len, segdev_create, &dev_a); in gfxp_ddi_segmap_setup()
153 as_rangeunlock(as); in gfxp_ddi_segmap_setup()
/illumos-gate/usr/src/lib/libkvm/common/
H A Dkvm.c57 struct as *kvm_kas;
183 kd->kvm_kas = (struct as *)nl[0].n_value; in kvm_open()
281 kvm_lookup(kvm_t *kd, struct as *as, uint64_t addr) in kvm_lookup() argument
340 struct as *as, ssize_t (*prw)(int, void *, size_t, offset_t)) in kvm_rw() argument
356 if (as == kd->kvm_kas) in kvm_rw()
358 if (as == NULL) in kvm_rw()
373 if ((off = kvm_lookup(kd, as, addr)) == 0) in kvm_rw()
406 kvm_aread(kvm_t *kd, uintptr_t addr, void *buf, size_t size, struct as *as) in kvm_aread() argument
437 struct as *as) in kvm_awrite() argument
449 kvm_physaddr(kvm_t *kd, struct as *as, uintptr_t addr) in kvm_physaddr() argument
[all …]
/illumos-gate/usr/src/tools/aw/
H A Daw.c549 newae(as, as_pgm); in main()
550 newae(as, "--warn"); in main()
615 newae(as, filename); in main()
676 newae(as, arg); in main()
721 newae(as, arg); in main()
727 newae(as, arg); in main()
730 newae(as, arg); in main()
737 newae(as, "--64"); in main()
739 newae(as, "--32"); in main()
746 newae(as, "-o"); in main()
[all …]
/illumos-gate/usr/src/uts/sparc/v9/vm/
H A Dseg_nf.c187 struct as *as = seg->s_as; in segnf_create() local
189 ASSERT(as && AS_WRITE_HELD(as)); in segnf_create()
226 mutex_enter(&as->a_contents); in segnf_create()
227 as->a_flags |= AS_NEEDSPURGE; in segnf_create()
228 mutex_exit(&as->a_contents); in segnf_create()
232 if (as != &kas) in segnf_create()
241 if ((s1 = AS_SEGPREV(as, seg)) != NULL && in segnf_create()
250 if ((s2 = AS_SEGNEXT(as, seg)) != NULL && in segnf_create()
269 s1 = AS_SEGPREV(as, seg); in segnf_create()
276 s1 = AS_SEGNEXT(as, seg); in segnf_create()
[all …]

12345678910>>...63