/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_Lxcache.c | 48 * the # of times we have retired a cache line for each category. 304 cmd_Lxcache_t *cache; local 306 for (cache = cmd_list_next(&cpu->cpu_Lxcaches); cache != NULL; 307 cache = cmd_list_next(cache)) { 308 if ((cache->Lxcache_index == (uint32_t)index) && 309 (cache->Lxcache_way == (uint32_t)way) && 310 (cache->Lxcache_type == pstype)) { 311 return (cache); 513 cmd_Lxcache_t *cache = NULL; local 533 cmd_Lxcache_t *cache = NULL; local [all...] |
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | fake_shdr.c | 28 * Generate a cache of section header information for an ELF 93 * Note: We write the sections to the cache array in this same order. 95 * sections occupy known slots in the cache array. Other sections reference 102 * cache array. 141 * header cache and the various sub-parts it references. Indexed by 1046 * Generate a section header cache made up of information derived 1054 * cache, shnum - Addresses of variables to receive resulting 1055 * cache and number of sections. 1058 * On success, *cache and *shnum are set, and True (1) is returned. 1062 * The cache returne 1067 fake_shdr_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, size_t *shnum) argument 1544 fake_shdr_cache_free(Cache *cache, size_t shnum) argument [all...] |
H A D | elfdump.c | 107 Cache *cache; /* Pointer to cache entry for VERSYM */ member in struct:__anon139 122 Cache *cache; /* Cache of all section headers */ member in struct:__anon140 124 Word shnum; /* # of sections in cache */ 272 relsymname(Cache *cache, Cache *csec, Cache *strsec, Word symndx, Word symnum, argument 296 cache[sym->st_shndx].c_name); 310 stringtbl(Cache *cache, int symtab, Word ndx, Word shnum, const char *file, argument 313 Shdr *shdr = cache[ndx].c_shdr; 326 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); 334 shdr = cache[nd 396 symlookup(const char *name, Cache *cache, Word shnum, Sym **sym, Cache *target, Cache *symtab, const char *file) argument 464 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) argument 546 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, gnu_eh_state_t *eh_state, uchar_t osabi, const char *file, uint_t flags) argument 865 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, const char *file, Elf *elf, uint_t flags) argument 976 init_symtbl_state(SYMTBL_STATE *state, Cache *cache, Word shnum, Word secndx, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument 1320 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, uchar_t osabi, Ehdr *ehdr, uint_t flags) argument 1695 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, Elf *elf, uint_t flags) argument 1778 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) argument 1859 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument 2301 versions(Cache *cache, Word shnum, const char *file, uint_t flags, VERSYM_STATE *versym) argument 2441 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument 2484 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument 2621 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument 2888 dyn_symtest(Dyn *dyn, const char *symname, Cache *symtab_cache, Cache *dynsym_cache, Cache *ldynsym_cache, Cache *target_cache, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument 2924 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument 3439 move(Cache *cache, Word shnum, const char *file, uint_t flags) argument 3686 note_entry(Cache *cache, Word *data, size_t size, Ehdr *ehdr, const char *file) argument 3816 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument 3871 has_linux_abi_note(Cache *cache, Word shnum, const char *file) argument 3979 hash(Cache *cache, Word shnum, const char *file, uint_t flags) argument 4171 group(Cache *cache, Word shnum, const char *file, uint_t flags) argument 4270 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument 4552 Cache *cache, *_cache; local 4860 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, size_t shstrndx, size_t *shnum, uint_t *flags) argument 4895 Cache *cache; local [all...] |
/illumos-gate/usr/src/cmd/sgs/pvs/common/ |
H A D | pvs.c | 78 typedef struct cache { struct 473 sym_local(Cache *cache, Cache *csym, const char *file) argument 481 strs = (char *)cache[shdr.sh_link].c_data->d_buf; 553 gvers_need(Cache *cache, Cache *need, const Gver_sym_data *vsdata, argument 578 strs = (char *)cache[shdr.sh_link].c_data->d_buf; 804 gvers_def(Cache *cache, Cache *def, const Gver_sym_data *vsdata, argument 830 strs = (char *)cache[shdr.sh_link].c_data->d_buf; 1012 Cache *cache, *_cache; local 1150 * Fill in the cache descriptor with information for each 1156 * might as well set up the cache fo [all...] |
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.c | 27 * Simple doors ldap cache daemon 363 ldap_stat_t *cache; local 378 cache = getcacheptr("ldap"); 383 cache->ldap_ttl = atoi(optarg); 775 * Get the cache stattistics. 825 * Get the cache stattistics. 1169 * get cache data statistics 1183 * print cache data statistics line by line 1185 (void) printf(gettext("\ncachemgr cache data statistics:\n"));
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | callout.c | 1952 callout_cache_t *cache; local 1961 * Locate the cache corresponding to the onlined CPU's lgroup. 1965 for (cache = callout_caches; cache != NULL; cache = cache->cc_next) { 1966 if (cache->cc_hand == hand) 1973 if (cache == NULL) { 1974 cache = kmem_alloc(sizeof (callout_cache_t), KM_SLEEP); 1975 cache [all...] |
H A D | log_sysevent.c | 445 * Set up the nvlist based data cache. User by lofi to find 449 lofi_nvl_init(lofi_nvl_t *cache) argument 451 mutex_init(&cache->ln_lock, NULL, MUTEX_DRIVER, NULL); 452 cv_init(&cache->ln_cv, NULL, CV_DRIVER, NULL); 453 (void) nvlist_alloc(&cache->ln_data, NV_UNIQUE_NAME, KM_SLEEP); 462 /* Set up devlink cache for lofi. */ 1216 /* New class, add to the registration cache */
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | idmapd.h | 149 sqlite *cache; member in struct:lookup_state 227 * Expired ephemeral mapping found in cache when processing sid2uid request.
|
H A D | dbutils.c | 405 * Get the cache handle 408 get_cache_handle(sqlite **cache) argument 439 *cache = tsd->cache_db; 444 * Initialize cache and db 461 /* mappings, name/SID lookup cache + ephemeral IDs; OK to blow away */ 1501 lookup_cache_sid2pid(sqlite *cache, idmap_mapping *req, idmap_id_res *res) argument 1538 /* SQL to lookup the cache */ 1577 retcode = sql_compile_n_step_once(cache, sql, &vm, &ncol, 1716 * name cache table and so during an upgrade might still be visible. 1717 * In addition, the test suite prepopulates the cache wit 1741 lookup_cache_sid2name(sqlite *cache, const char *sidprefix, idmap_rid_t rid, char **canonname, char **canondomain, idmap_id_type *type) argument 1820 lookup_name_cache(sqlite *cache, idmap_mapping *req, idmap_id_res *res) argument 3878 lookup_cache_pid2sid(sqlite *cache, idmap_mapping *req, idmap_id_res *res, int is_user) argument 4087 lookup_cache_name2sid( sqlite *cache, const char *name, const char *domain, char **canonname, char **sidprefix, idmap_rid_t *rid, idmap_id_type *type) argument 4292 lookup_name2sid( sqlite *cache, const char *name, const char *domain, int want_wuser, char **canonname, char **canondomain, char **sidprefix, idmap_rid_t *rid, idmap_id_type *type, idmap_mapping *req, int local_only) argument 4899 sqlite *cache = NULL; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | cc_file.c | 33 * implementation of file-based credentials cache 44 The quasi-BNF grammar for a credentials cache: 235 * The default credentials cache should be type 3 for now (see 355 * Reads len bytes from the cache id, storing them in buf. 900 * Writes len bytes from buf into the file cred cache id. 931 * cache file. 1452 /* V4 of the credentials cache format allows for header tags */ 1604 * Creates/refreshes the file cred cache id. If the cache exists, its 1699 * Closes the file cache, invalidate 2435 krb5_fcc_remove_cred(krb5_context context, krb5_ccache cache, krb5_flags flags, krb5_creds *creds) argument [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 565 * forcibly cache all of the symbol tables associated with all object files. 928 * get them, then we cache them in case we come here again. 1590 } *cp, *cache = NULL, *dyn = NULL, *plt = NULL, *ctf = NULL; local 1709 if ((cache = malloc(nshdrs * sizeof (*cache))) == NULL) { 1710 dprintf("failed to malloc section cache for %s\n", objectfile); 1725 for (cp = cache + 1, scn = NULL; scn = elf_nextscn(elf, scn); cp++) { 1747 * Now iterate through the section cache in order to locate info 1751 for (i = 1, cp = cache + 1; i < nshdrs; i++, cp++) { 1774 cache[sh [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | svm_rcm.c | 48 * builds a cache of all of the SVM resources and their dependencies. Each 50 * function. When the cache is built each SVM resource is registered with 52 * ensure that the caching in libmeta will not conflict with the cache 56 * framework will call the appropriate routine in this module. The cache 62 * The cache is protected by a mutex 74 #define MSG_NORECACHE gettext("SVM: WARNING: couldn't re-cache.") 76 #define MSG_CACHEFAIL gettext("SVM: can't malloc cache") 149 typedef struct cache { struct 152 uint32_t registered; /* cache regsitered */ 162 static deventry_t *cache_dependent(cache_t *cache, cha 1102 cache_dependent(cache_t *cache, char *devname, int devflags, deventry_t *dependent) argument 1190 cache_device(cache_t *cache, char *devname, svm_type_t devtype, md_dev64_t devkey, int devflags) argument 1293 cache_hsp(cache_t *cache, mdhspnamelist_t *nlp, md_hsp_t *hsp) argument 1329 cache_trans(cache_t *cache, mdnamelist_t *nlp, md_trans_t *trans) argument 1378 cache_mirror(cache_t *cache, mdnamelist_t *nlp, md_mirror_t *mirror) argument 1420 cache_raid(cache_t *cache, mdnamelist_t *nlp, md_raid_t *raid) argument 1461 cache_stripe(cache_t *cache, mdnamelist_t *nlp, md_stripe_t *stripe) argument 1517 cache_sp(cache_t *cache, mdnamelist_t *nlp, md_sp_t *soft_part) argument 1546 cache_all_devices_in_set(cache_t *cache, mdsetname_t *sp) argument 1732 cache_all_devices(cache_t *cache) argument 1797 cache_t *cache; local 1936 cache_remove(cache_t *cache, deventry_t *deventry) argument 2013 cache_lookup(cache_t *cache, char *devname) argument 2199 cache_walk(cache_t *cache, uint32_t *i, deventry_t **line) argument 2255 free_cache(cache_t **cache) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | net.c | 1082 netstat_print_conn(const char *cache, int proto, mdb_walk_cb_t cbfunc, argument 1089 if (mdb_walk(cache, cbfunc, cbdata) == -1) { 1090 mdb_warn("failed to walk %s", cache); 1097 netstat_print_common(const char *cache, int proto, mdb_walk_cb_t cbfunc, argument 1107 status = netstat_print_conn(cache, proto, cbfunc, cbdata); 1112 status = netstat_print_conn(cache, proto, cbfunc, cbdata);
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | drvsubr.c | 70 static int get_cached_n_to_m_file(char *filename, char ***cache); 586 * cache if this has not already been done. Since there may be 591 get_cached_n_to_m_file(char *filename, char ***cache) argument 620 if (ptr == NULL) { /* we need to cache the contents */ 649 /* allocate struct to cache the file */ 657 /* allocate space to cache contents of file */ 668 * now fill the cache 669 * the cache is an array of char pointers indexed by major 698 /* link the cache struct into the list of cached files */ 712 *cache [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | dyn.c | 1593 elfedit_section_t *cache; local 1619 cache = &obj_state->os_secarr[obj_state->os_dynndx]; 1620 dyn = (Dyn *) cache->sec_data->d_buf; 1621 i = cache->sec_shdr->sh_size / cache->sec_shdr->sh_entsize;
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | optget.c | 2211 o = &opt_info.state->cache->pass; 3913 Optcache_t* cache; local 3947 cache = 0; 3949 for (pcache = 0, cache = opt_info.state->cache; cache; pcache = cache, cache = cache->next) 3950 if (cache [all...] |
/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | vmhdr.h | 338 #define CACHE(vd) ((vd)->cache) 349 Block_t* cache[S_CACHE+1]; /* delayed free blocks */ member in struct:_vmdata_s
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_usage.c | 48 * data. If the cached data is young enough, the cache is copied, otherwise, 49 * a new calculation is executed and the cache is replaced with the new 251 hrtime_t vmc_timestamp; /* when cache was created */ 405 * of visited vnodes and shared amps. Initialize results cache. 1700 * allocate a new cache for N results satisfying flags 1705 vmu_cache_t *cache; local 1707 cache = kmem_zalloc(sizeof (vmu_cache_t), KM_SLEEP); 1708 cache->vmc_results = kmem_zalloc(sizeof (vmusage_t) * nres, KM_SLEEP); 1709 cache->vmc_nresults = nres; 1710 cache 1719 vmu_cache_hold(vmu_cache_t *cache) argument 1729 vmu_cache_rele(vmu_cache_t *cache) argument 1746 vmu_copyout_results(vmu_cache_t *cache, vmusage_t *buf, size_t *nres, uint_t flags, int cpflg) argument 1943 vmu_cache_t *cache; local 1974 vmu_cache_t *cache; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_reiserfs.c | 293 /* The size of the node cache */ 348 #define BLOCKHEAD(cache) ((struct block_head *) cache) 350 #define KEY(cache) ((struct key *) ((int) cache + BLKH_SIZE)) 351 #define DC(cache) ((struct disk_child *) \ 352 ((int) cache + BLKH_SIZE + KEY_SIZE * nr_item)) 358 * The journal cache. For each transaction it contains the number of 465 /* Init the journal data structure. We try to cache as much as 623 /* Clear node cache 695 char* cache = CACHE(depth); local 733 char *cache; local 823 char *cache; local [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_export.c | 835 * Initialize auth cache and auth cache lock 1197 * Initialize auth cache and auth cache lock 2527 struct charset_cache *cache; local 2546 for (cache = exi->exi_charset; cache != NULL; 2547 cache = exi->exi_charset) { 2548 if (cache->inbound != (kiconv_t)-1) 2549 (void) kiconv_close(cache [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_objset.c | 1248 do_userquota_cacheflush(objset_t *os, userquota_cache_t *cache, dmu_tx_t *tx) argument 1256 while ((uqn = avl_destroy_nodes(&cache->uqc_user_deltas, 1262 avl_destroy(&cache->uqc_user_deltas); 1265 while ((uqn = avl_destroy_nodes(&cache->uqc_group_deltas, 1271 avl_destroy(&cache->uqc_group_deltas); 1290 do_userquota_update(userquota_cache_t *cache, uint64_t used, uint64_t flags, argument 1298 userquota_update_cache(&cache->uqc_user_deltas, user, delta); 1299 userquota_update_cache(&cache->uqc_group_deltas, group, delta); 1308 userquota_cache_t cache = { 0 }; local 1312 avl_create(&cache [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | devinfo.c | 837 * For cache lookups we reallocate memory from scratch, 971 di_cache2mem(struct di_cache *cache, struct di_state *st) argument 978 ASSERT(DI_CACHE_LOCKED(*cache)); 980 if (cache->cache_size == 0) { 981 ASSERT(cache->cache_data == NULL); 982 CACHE_DEBUG((DI_ERR, "Empty cache. Skipping copy")); 986 ASSERT(cache->cache_data); 988 di_allocmem(st, cache->cache_size); 1000 bcopy(cache->cache_data, pa, cache 1012 di_mem2cache(struct di_state *st, struct di_cache *cache) argument 3754 di_cache_write(struct di_cache *cache) argument 3912 di_cache_read(struct di_cache *cache) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | hat_i86.c | 218 * kmem cache constructor for struct hat 416 kmem_cache_t *cache; local 456 * Decide which kmem cache the hash table came from, then free it. 459 cache = vlp_hash_cache; 461 cache = hat_hash_cache; 462 kmem_cache_free(cache, hat->hat_ht_hash); 672 * increase the size of the cache to cover all of memory for 1746 * HAT_LOADCACHING_OK: the CPU may cache the data it fetches and reuse it 1749 * HAT_STORECACHING_OK: the CPU may keep the data in the cache and push it to
|
/illumos-gate/usr/src/common/lzma/ |
H A D | LzmaEnc.c | 223 Byte cache; member in struct:_CRangeEnc 509 p->cache = 0; 533 Byte temp = p->cache; 544 p->cache = (Byte)((UInt32)p->low >> 24);
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_client.c | 4489 * we use a copy of bind_cpu and finally cache bind_cpu in mip. 4490 * This allows us to cache only user edits in mip. 4882 uint32_t cache = mcip->mci_vidcache; local 4888 if (MCIP_VIDCACHE_ISVALID(cache) && MCIP_VIDCACHE_VID(cache) == vid) 4889 return (MCIP_VIDCACHE_BOOL(cache) ? B_TRUE : B_FALSE);
|