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