Lines Matching defs:mctx
47 isc_mem_t *mctx;
120 load_plugin(isc_mem_t *mctx, const char *modpath, ns_plugin_t **pluginp) {
129 plugin = isc_mem_get(mctx, sizeof(*plugin));
131 .modpath = isc_mem_strdup(mctx, modpath),
134 isc_mem_attach(mctx, &plugin->mctx);
205 isc_mem_free(plugin->mctx, plugin->modpath);
206 isc_mem_putanddetach(&plugin->mctx, plugin, sizeof(*plugin));
212 isc_mem_t *mctx, isc_log_t *lctx, void *actx,
217 REQUIRE(mctx != NULL);
224 CHECK(load_plugin(mctx, modpath, &plugin));
229 CHECK(plugin->register_func(parameters, cfg, cfg_file, cfg_line, mctx,
245 const char *cfg_file, unsigned long cfg_line, isc_mem_t *mctx,
250 CHECK(load_plugin(mctx, modpath, &plugin));
252 result = plugin->check_func(parameters, cfg, cfg_file, cfg_line, mctx,
273 ns_hooktable_create(isc_mem_t *mctx, ns_hooktable_t **tablep) {
278 hooktable = isc_mem_get(mctx, sizeof(*hooktable));
288 ns_hooktable_free(isc_mem_t *mctx, void **tablep) {
304 if (hook->mctx != NULL) {
305 isc_mem_putanddetach(&hook->mctx, hook,
311 isc_mem_put(mctx, table, sizeof(*table));
315 ns_hook_add(ns_hooktable_t *hooktable, isc_mem_t *mctx,
320 REQUIRE(mctx != NULL);
324 copy = isc_mem_get(mctx, sizeof(*copy));
329 isc_mem_attach(mctx, ©->mctx);
336 ns_plugins_create(isc_mem_t *mctx, ns_plugins_t **listp) {
341 plugins = isc_mem_get(mctx, sizeof(*plugins));
349 ns_plugins_free(isc_mem_t *mctx, void **listp) {
364 isc_mem_put(mctx, list, sizeof(*list));