Lines Matching defs:mgr
251 isc_nm_t *mgr = *mgr0;
254 isc_refcount_destroy(&mgr->references);
256 mgr->magic = 0;
258 if (mgr->stats != NULL) {
259 isc_stats_detach(&mgr->stats);
262 isc_mem_cput(mgr->mctx, mgr->workers, mgr->nloops,
263 sizeof(mgr->workers[0]));
264 isc_mem_putanddetach(&mgr->mctx, mgr, sizeof(*mgr));
268 isc_nm_attach(isc_nm_t *mgr, isc_nm_t **dst) {
269 REQUIRE(VALID_NM(mgr));
272 isc_refcount_increment(&mgr->references);
274 *dst = mgr;
279 isc_nm_t *mgr = NULL;
284 mgr = *mgr0;
287 if (isc_refcount_decrement(&mgr->references) == 1) {
288 nm_destroy(&mgr);
294 isc_nm_t *mgr = NULL;
298 mgr = *netmgrp;
301 REQUIRE(isc_refcount_decrement(&mgr->references) == 1);
302 nm_destroy(&mgr);
306 isc_nm_maxudp(isc_nm_t *mgr, uint32_t maxudp) {
307 REQUIRE(VALID_NM(mgr));
309 atomic_store_relaxed(&mgr->maxudp, maxudp);
350 isc_nm_settimeouts(isc_nm_t *mgr, uint32_t init, uint32_t idle,
352 REQUIRE(VALID_NM(mgr));
354 atomic_store_relaxed(&mgr->init, init);
355 atomic_store_relaxed(&mgr->idle, idle);
356 atomic_store_relaxed(&mgr->keepalive, keepalive);
357 atomic_store_relaxed(&mgr->advertised, advertised);
361 isc_nm_setnetbuffers(isc_nm_t *mgr, int32_t recv_tcp, int32_t send_tcp,
363 REQUIRE(VALID_NM(mgr));
365 atomic_store_relaxed(&mgr->recv_tcp_buffer_size, recv_tcp);
366 atomic_store_relaxed(&mgr->send_tcp_buffer_size, send_tcp);
367 atomic_store_relaxed(&mgr->recv_udp_buffer_size, recv_udp);
368 atomic_store_relaxed(&mgr->send_udp_buffer_size, send_udp);
372 isc_nm_getloadbalancesockets(isc_nm_t *mgr) {
373 REQUIRE(VALID_NM(mgr));
375 return mgr->load_balance_sockets;
379 isc_nm_setloadbalancesockets(isc_nm_t *mgr, ISC_ATTR_UNUSED bool enabled) {
380 REQUIRE(VALID_NM(mgr));
383 mgr->load_balance_sockets = enabled;
388 isc_nm_gettimeouts(isc_nm_t *mgr, uint32_t *initial, uint32_t *idle,
390 REQUIRE(VALID_NM(mgr));
392 SET_IF_NOT_NULL(initial, atomic_load_relaxed(&mgr->init));
394 SET_IF_NOT_NULL(idle, atomic_load_relaxed(&mgr->idle));
396 SET_IF_NOT_NULL(keepalive, atomic_load_relaxed(&mgr->keepalive));
398 SET_IF_NOT_NULL(advertised, atomic_load_relaxed(&mgr->advertised));
2025 isc_nm_setstats(isc_nm_t *mgr, isc_stats_t *stats) {
2026 REQUIRE(VALID_NM(mgr));
2027 REQUIRE(mgr->stats == NULL);
2030 isc_stats_attach(stats, &mgr->stats);