Lines Matching refs:mem
24 #include <isc/mem.h>
54 dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list) {
59 l = isc_mem_get(mem, sizeof(*l));
64 l->mem = mem;
126 isc_mem_put(l->mem, l, sizeof(*l));
196 dns_peer_new(isc_mem_t *mem, isc_netaddr_t *addr, dns_peer_t **peerptr) {
211 return (dns_peer_newprefix(mem, addr, prefixlen, peerptr));
215 dns_peer_newprefix(isc_mem_t *mem, isc_netaddr_t *addr, unsigned int prefixlen,
222 peer = isc_mem_get(mem, sizeof(*peer));
229 peer->mem = mem;
285 isc_mem_t *mem;
294 mem = p->mem;
295 p->mem = NULL;
299 dns_name_free(p->key, mem);
300 isc_mem_put(mem, p->key, sizeof(dns_name_t));
304 isc_mem_put(mem, p->transfer_source,
308 isc_mem_put(mem, p, sizeof(*p));
517 dns_name_free(peer->key, peer->mem);
518 isc_mem_put(peer->mem, peer->key, sizeof(dns_name_t));
543 name = isc_mem_get(peer->mem, sizeof(dns_name_t));
548 result = dns_name_dup(dns_fixedname_name(&fname), peer->mem, name);
550 isc_mem_put(peer->mem, name, sizeof(dns_name_t));
556 isc_mem_put(peer->mem, name, sizeof(dns_name_t));
568 isc_mem_put(peer->mem, peer->transfer_source,
573 peer->transfer_source = isc_mem_get(peer->mem,
601 isc_mem_put(peer->mem, peer->notify_source,
606 peer->notify_source = isc_mem_get(peer->mem,
632 isc_mem_put(peer->mem, peer->query_source,
637 peer->query_source = isc_mem_get(peer->mem,