Lines Matching defs:id
92 static struct kctl *ctl_find_by_id_unit(u_int32_t id, u_int32_t unit);
96 static void ctl_post_msg(u_int32_t event_code, u_int32_t id);
437 sc.sc_id = kctl->id;
687 ctl_info.ctl_id = kctl->id;
708 u_int32_t id = 1;
733 * this leads to wrapping the id around, we start at the front of the
748 id = 1;
753 id = kctl_next->id + 1;
757 * If this wrapped the id number, start looking at the front
758 * of the list for an unused id.
760 if (id == 0) {
762 id = 1;
765 if (kctl_next->id > id) {
770 id = kctl_next->id + 1;
775 userkctl->ctl_id = id;
776 kctl->id = id;
780 if (kctl_next->id > userkctl->ctl_id)
789 kctl->id = userkctl->ctl_id;
821 ctl_post_msg(KEV_CTL_REGISTERED, kctl->id);
851 ctl_post_msg(KEV_CTL_DEREGISTERED, kctl->id);
878 if (kctl) ctl_id = kctl->id;
886 u_int32_t id,
895 if (kctl->id == id)
916 ctl_find_by_id_unit(u_int32_t id, u_int32_t unit)
921 if (kctl->id == id && (kctl->flags & CTL_FLAG_REG_ID_UNIT) == 0)
923 else if (kctl->id == id && kctl->reg_unit == unit)
982 ctl_post_msg(u_int32_t event_code, u_int32_t id)
998 ctl_ev_data.ctl_id = id;