Lines Matching defs:klp
119 static int kauth_add_callback_to_scope(kauth_scope_t sp, kauth_listener_t klp);
220 kauth_listener_t klp;
247 TAILQ_FOREACH(klp, &kauth_dangling_listeners, kl_link) {
248 if (strncmp(klp->kl_identifier, sp->ks_identifier,
249 strlen(klp->kl_identifier) + 1) == 0) {
253 if (kauth_add_callback_to_scope(sp, klp) == 0) {
254 TAILQ_REMOVE(&kauth_dangling_listeners, klp, kl_link);
301 kauth_listener_t klp;
304 if ((klp = kauth_alloc_listener(identifier, callback, idata)) == NULL)
315 if (kauth_add_callback_to_scope(sp, klp) == 0) {
317 return(klp);
321 FREE(klp, M_KAUTH);
327 TAILQ_INSERT_TAIL(&kauth_dangling_listeners, klp, kl_link);
331 return(klp);
338 kauth_listener_t klp;
373 TAILQ_FOREACH(klp, &kauth_dangling_listeners, kl_link) {
374 if (klp == listener) {
375 TAILQ_REMOVE(&kauth_dangling_listeners, klp, kl_link);
1156 static int kauth_add_callback_to_scope(kauth_scope_t sp, kauth_listener_t klp)
1162 sp->ks_listeners[i].kll_callback = klp->kl_callback;
1163 sp->ks_listeners[i].kll_idata = klp->kl_idata;
1164 sp->ks_listeners[i].kll_listenerp = klp;