Lines Matching defs:mem
15 #include <isc/mem.h>
52 dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list) {
57 l = isc_mem_get(mem, sizeof(*l));
62 l->mem = mem;
124 isc_mem_put(l->mem, l, sizeof(*l));
194 dns_peer_new(isc_mem_t *mem, isc_netaddr_t *addr, dns_peer_t **peerptr) {
209 return (dns_peer_newprefix(mem, addr, prefixlen, peerptr));
213 dns_peer_newprefix(isc_mem_t *mem, isc_netaddr_t *addr, unsigned int prefixlen,
220 peer = isc_mem_get(mem, sizeof(*peer));
227 peer->mem = mem;
283 isc_mem_t *mem;
292 mem = p->mem;
293 p->mem = NULL;
297 dns_name_free(p->key, mem);
298 isc_mem_put(mem, p->key, sizeof(dns_name_t));
302 isc_mem_put(mem, p->query_source, sizeof(*p->query_source));
305 isc_mem_put(mem, p->notify_source, sizeof(*p->notify_source));
308 isc_mem_put(mem, p->transfer_source,
311 isc_mem_put(mem, p, sizeof(*p));
598 dns_name_free(peer->key, peer->mem);
599 isc_mem_put(peer->mem, peer->key, sizeof(dns_name_t));
624 name = isc_mem_get(peer->mem, sizeof(dns_name_t));
629 result = dns_name_dup(dns_fixedname_name(&fname), peer->mem, name);
631 isc_mem_put(peer->mem, name, sizeof(dns_name_t));
637 isc_mem_put(peer->mem, name, sizeof(dns_name_t));
649 isc_mem_put(peer->mem, peer->transfer_source,
654 peer->transfer_source = isc_mem_get(peer->mem,
682 isc_mem_put(peer->mem, peer->notify_source,
687 peer->notify_source = isc_mem_get(peer->mem,
713 isc_mem_put(peer->mem, peer->query_source,
718 peer->query_source = isc_mem_get(peer->mem,