Lines Matching refs:ctl
127 sdt_provide_module(void *arg, struct modctl *ctl) in sdt_provide_module() argument
129 struct module *mp = ctl->mod_mp; in sdt_provide_module()
130 char *modname = ctl->mod_modname; in sdt_provide_module()
155 primary = vmem_contains(heap_arena, (void *)ctl, in sdt_provide_module()
212 sdp->sdp_loadcnt = ctl->mod_loadcnt; in sdt_provide_module()
214 sdp->sdp_ctl = ctl; in sdt_provide_module()
257 struct modctl *ctl = sdp->sdp_ctl; in sdt_destroy() local
259 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) { in sdt_destroy()
260 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt && in sdt_destroy()
261 ctl->mod_loaded) || sdp->sdp_primary) { in sdt_destroy()
262 ((struct module *)(ctl->mod_mp))->sdt_nprobes--; in sdt_destroy()
279 struct modctl *ctl = sdp->sdp_ctl; in sdt_enable() local
281 ctl->mod_nenabled++; in sdt_enable()
287 if (!sdp->sdp_primary && !ctl->mod_loaded) { in sdt_enable()
291 sdp->sdp_name, ctl->mod_modname); in sdt_enable()
301 if (ctl->mod_loadcnt != sdp->sdp_loadcnt) { in sdt_enable()
305 sdp->sdp_name, ctl->mod_modname); in sdt_enable()
324 struct modctl *ctl = sdp->sdp_ctl; in sdt_disable() local
326 ASSERT(ctl->mod_nenabled > 0); in sdt_disable()
327 ctl->mod_nenabled--; in sdt_disable()
329 if ((!sdp->sdp_primary && !ctl->mod_loaded) || in sdt_disable()
330 (ctl->mod_loadcnt != sdp->sdp_loadcnt)) in sdt_disable()