Lines Matching refs:n_ref
137 static int broadcast_group_set_ref(sd_netlink *nl, unsigned group, unsigned n_ref) {
142 r = hashmap_replace(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(n_ref));
164 unsigned n_ref;
169 n_ref = broadcast_group_get_ref(nl, group);
171 n_ref ++;
177 r = broadcast_group_set_ref(nl, group, n_ref);
181 if (n_ref > 1)
210 unsigned n_ref;
215 n_ref = broadcast_group_get_ref(nl, group);
217 assert(n_ref > 0);
219 n_ref --;
221 r = broadcast_group_set_ref(nl, group, n_ref);
225 if (n_ref > 0)