Lines Matching defs:sub
324 struct tipc_subscription *sub, *tmp;
352 list_for_each_entry_safe(sub, tmp, &sc->subscriptions, service_list) {
353 tipc_sub_report_overlap(sub, p->lower, p->upper, TIPC_PUBLISHED,
400 struct tipc_subscription *sub)
402 struct tipc_subscr *sb = &sub->evt.s;
414 tipc_sub_get(sub);
415 list_add(&sub->service_list, &service->subscriptions);
437 tipc_sub_report_overlap(sub, p->lower, p->upper,
490 struct tipc_subscription *sub, *tmp;
508 list_for_each_entry_safe(sub, tmp, &sc->subscriptions, service_list) {
509 tipc_sub_report_overlap(sub, lower, upper, TIPC_WITHDRAWN,
795 bool tipc_nametbl_subscribe(struct tipc_subscription *sub)
797 struct name_table *nt = tipc_name_table(sub->net);
798 struct tipc_net *tn = tipc_net(sub->net);
799 struct tipc_subscr *s = &sub->evt.s;
805 sc = tipc_service_find(sub->net, type);
810 tipc_service_subscribe(sc, sub);
825 void tipc_nametbl_unsubscribe(struct tipc_subscription *sub)
827 struct tipc_net *tn = tipc_net(sub->net);
828 struct tipc_subscr *s = &sub->evt.s;
833 sc = tipc_service_find(sub->net, type);
838 list_del_init(&sub->service_list);
839 tipc_sub_put(sub);