Lines Matching refs:mc
81 mod_ctf_t *mc;
94 * Return the cached mc if there is one already.
99 mc = module_getspecific(mod, fbt_module_key);
100 if (mc != NULL) {
101 *mcp = mc;
106 * Allocate and initialize a new mc.
109 mc = kmem_zalloc(sizeof(mod_ctf_t), KM_SLEEP);
112 mc->nmap = st->sd_nmap;
113 mc->nmapsize = st->sd_nmapsize;
126 mc->symtab = st->sd_symstart;
127 mc->strtab = st->sd_strstart;
128 mc->strcnt = 0; /* XXX TBD */
129 mc->nsym = st->sd_symsize / sizeof(Elf_Sym);
136 mc->symtab = mod->mod_kobj->ko_symtab;
137 mc->strtab = mod->mod_kobj->ko_strtab;
138 mc->strcnt = 0; /* XXX TBD */
139 mc->nsym = mod->mod_kobj->ko_symcnt;
193 mc->ctfalloc = 1;
232 mc->ctfcnt = ctfsize;
233 mc->ctftab = ctftab;
236 module_setspecific(mod, fbt_module_key, mc);
237 *mcp = mc;
238 mc = NULL;
243 if (mc != NULL)
244 kmem_free(mc, sizeof(*mc));