Home | History | Annotate | Download | only in kern

Lines Matching defs:mc

75 	mod_ctf_t *mc;
88 * Return the cached mc if there is one already.
93 mc = module_getspecific(mod, fbt_module_key);
94 if (mc != NULL) {
95 *mcp = mc;
100 * Allocate and initialize a new mc.
103 mc = kmem_zalloc(sizeof(mod_ctf_t), KM_SLEEP);
106 mc->nmap = st->sd_nmap;
107 mc->nmapsize = st->sd_nmapsize;
120 mc->symtab = st->sd_symstart;
121 mc->strtab = st->sd_strstart;
122 mc->strcnt = 0; /* XXX TBD */
123 mc->nsym = st->sd_symsize / sizeof(Elf_Sym);
130 mc->symtab = mod->mod_kobj->ko_symtab;
131 mc->strtab = mod->mod_kobj->ko_strtab;
132 mc->strcnt = 0; /* XXX TBD */
133 mc->nsym = mod->mod_kobj->ko_symcnt;
187 mc->ctfalloc = 1;
226 mc->ctfcnt = ctfsize;
227 mc->ctftab = ctftab;
230 module_setspecific(mod, fbt_module_key, mc);
231 *mcp = mc;
232 mc = NULL;
237 if (mc != NULL)
238 kmem_free(mc, sizeof(*mc));