Lines Matching refs:service
261 struct tipc_service *service; in tipc_service_create() local
264 service = kzalloc(sizeof(*service), GFP_ATOMIC); in tipc_service_create()
265 if (!service) { in tipc_service_create()
270 spin_lock_init(&service->lock); in tipc_service_create()
271 service->type = ua->sr.type; in tipc_service_create()
272 service->ranges = RB_ROOT; in tipc_service_create()
273 INIT_HLIST_NODE(&service->service_list); in tipc_service_create()
274 INIT_LIST_HEAD(&service->subscriptions); in tipc_service_create()
276 hlist_add_head_rcu(&service->service_list, hd); in tipc_service_create()
277 return service; in tipc_service_create()
421 static void tipc_service_subscribe(struct tipc_service *service, in tipc_service_subscribe() argument
434 list_add(&sub->service_list, &service->subscriptions); in tipc_service_subscribe()
440 service_range_foreach_match(sr, service, lower, upper) { in tipc_service_subscribe()
466 struct tipc_service *service; in tipc_service_find() local
469 hlist_for_each_entry_rcu(service, service_head, service_list) { in tipc_service_find()
470 if (service->type == ua->sr.type) in tipc_service_find()
471 return service; in tipc_service_find()
935 struct tipc_service *service; in tipc_nametbl_stop() local
946 hlist_for_each_entry_rcu(service, service_head, service_list) { in tipc_nametbl_stop()
947 tipc_service_delete(net, service); in tipc_nametbl_stop()
957 struct tipc_service *service, in __tipc_nl_add_nametable_publ() argument
995 if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_TYPE, service->type)) in __tipc_nl_add_nametable_publ()
1054 struct tipc_service *service = NULL; in tipc_nl_service_list() local
1072 service = tipc_service_find(net, &ua); in tipc_nl_service_list()
1073 if (!service) in tipc_nl_service_list()
1076 hlist_for_each_entry_rcu(service, head, service_list) in tipc_nl_service_list()
1078 if (!service) in tipc_nl_service_list()
1082 hlist_for_each_entry_from_rcu(service, service_list) { in tipc_nl_service_list()
1083 spin_lock_bh(&service->lock); in tipc_nl_service_list()
1084 err = __tipc_nl_service_range_list(msg, service, in tipc_nl_service_list()
1089 *last_type = service->type; in tipc_nl_service_list()
1090 spin_unlock_bh(&service->lock); in tipc_nl_service_list()
1093 spin_unlock_bh(&service->lock); in tipc_nl_service_list()