Searched refs:n_ref (Results 1 - 25 of 56) sorted by relevance

123

/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-cleanup.c33 printf("after new: refcount %u\n", REFCNT_GET(bus->n_ref));
45 printf("after open: refcount %u\n", REFCNT_GET(bus->n_ref));
58 printf("after message_new_method_call: refcount %u\n", REFCNT_GET(bus->n_ref));
61 printf("after bus_flush_close_unref: refcount %u\n", m->n_ref);
72 printf("after message_new_signal: refcount %u\n", REFCNT_GET(bus->n_ref));
75 printf("after bus_flush_close_unref: refcount %u\n", m->n_ref);
H A Dbus-track.c28 unsigned n_ref; member in struct:sd_bus_track
100 t->n_ref = 1;
116 assert(track->n_ref > 0);
118 track->n_ref++;
129 assert(track->n_ref > 0);
131 if (track->n_ref > 1) {
132 track->n_ref --;
H A Dbus-slot.c43 slot->n_ref = 1;
62 assert(slot->n_ref > 0);
64 slot->n_ref++;
206 assert(slot->n_ref > 0);
208 if (slot->n_ref > 1) {
209 slot->n_ref --;
H A Dbus-creds.h28 unsigned n_ref; member in struct:sd_bus_creds
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-socket.c137 static int broadcast_group_set_ref(sd_netlink *nl, unsigned group, unsigned n_ref) { argument
142 r = hashmap_replace(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(n_ref));
164 unsigned n_ref; local
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; local
215 n_ref = broadcast_group_get_ref(nl, group);
217 assert(n_ref >
[all...]
H A Dnetlink-internal.h55 RefCount n_ref; member in struct:sd_netlink
109 RefCount n_ref; member in struct:sd_netlink_message
/systemd/src/resolve/
H A Dresolved-dns-search-domain.c55 d->n_ref = 1;
90 assert(d->n_ref > 0);
91 d->n_ref++;
100 assert(d->n_ref > 0);
101 d->n_ref--;
103 if (d->n_ref > 0)
H A Dresolved-dns-search-domain.h37 unsigned n_ref; member in struct:DnsSearchDomain
H A Dresolved-dns-question.c34 q->n_ref = 1;
44 assert(q->n_ref > 0);
45 q->n_ref++;
53 assert(q->n_ref > 0);
55 if (q->n_ref == 1) {
62 q->n_ref--;
H A Dresolved-dns-answer.c33 a->n_ref = 1;
43 assert(a->n_ref > 0);
44 a->n_ref++;
64 assert(a->n_ref > 0);
66 if (a->n_ref == 1) {
70 a->n_ref--;
115 if (a->n_ref > 1)
498 if ((*a)->n_ref > 1) {
584 if ((*a)->n_ref > 1) {
727 if ((*a)->n_ref >
[all...]
H A Dresolved-dns-question.h30 unsigned n_ref; member in struct:DnsQuestion
H A Dresolved-dns-rr.h82 unsigned n_ref; /* (unsigned -1) for const keys, see below */ member in struct:DnsResourceKey
93 .n_ref = (unsigned) -1, \
107 unsigned n_ref; member in struct:DnsResourceRecord
/systemd/src/libsystemd-network/
H A Dsd-ipv4ll.c46 unsigned n_ref; member in struct:sd_ipv4ll
63 assert(ll->n_ref >= 1);
64 ll->n_ref++;
73 assert(ll->n_ref >= 1);
74 ll->n_ref--;
76 if (ll->n_ref > 0)
100 ll->n_ref = 1;
H A Dlldp-internal.c177 if (c->n_ref >= LLDP_MIB_MAX_PORT_PER_CHASSIS) {
178 log_lldp("Port limit reached. Chassis has: %d ports. Dropping ...", c->n_ref);
196 c->n_ref ++;
226 c->n_ref --;
227 if (c->n_ref <= 1) {
289 if (c->n_ref > 1)
316 c->n_ref = 1;
H A Dsd-ndisc.c61 unsigned n_ref; member in struct:NDiscPrefix
73 unsigned n_ref; member in struct:sd_ndisc
100 assert(prefix->n_ref > 0);
101 prefix->n_ref--;
103 if (prefix->n_ref > 0)
123 prefix->n_ref = 1;
207 assert(nd->n_ref > 0);
208 nd->n_ref++;
229 assert(nd->n_ref > 0);
230 nd->n_ref
[all...]
H A Dsd-dhcp6-lease.c365 assert(lease->n_ref >= 1);
366 lease->n_ref++;
376 assert(lease->n_ref >= 1);
377 lease->n_ref--;
379 if (lease->n_ref > 0)
404 lease->n_ref = 1;
H A Ddhcp-lease-internal.h47 unsigned n_ref; member in struct:sd_dhcp_lease
H A Ddhcp-server-internal.h46 unsigned n_ref; member in struct:sd_dhcp_server
H A Ddhcp6-lease-internal.h30 unsigned n_ref; member in struct:sd_dhcp6_lease
H A Dlldp-internal.h65 unsigned n_ref; member in struct:lldp_chassis
H A Dlldp-tlv.h56 unsigned n_ref; member in struct:sd_lldp_packet
/systemd/src/journal-remote/
H A Djournal-remote-write.h48 int n_ref; member in struct:Writer
H A Djournal-remote-write.c83 w->n_ref = 1;
112 if (w && (-- w->n_ref <= 0))
120 assert_se(++ w->n_ref >= 2);
/systemd/src/journal/
H A Dmmap-cache.c74 int n_ref; member in struct:MMapCache
102 m->n_ref = 1;
108 assert(m->n_ref > 0);
110 m->n_ref ++;
362 assert(m->n_ref > 0);
364 m->n_ref --;
365 if (m->n_ref == 0)
394 assert(m->n_ref > 0);
439 assert(m->n_ref > 0);
516 assert(m->n_ref >
[all...]
/systemd/src/libsystemd/sd-device/
H A Ddevice-internal.h27 uint64_t n_ref; member in struct:sd_device

Completed in 92 milliseconds

123