Lines Matching refs:imp
161 #define MAYBE_LOCK(imp) LOCK(&imp->driverlock)
162 #define MAYBE_UNLOCK(imp) UNLOCK(&imp->driverlock)
164 #define MAYBE_LOCK(imp) \
166 unsigned int flags = imp->flags; \
168 LOCK(&imp->driverlock); \
171 #define MAYBE_UNLOCK(imp) \
173 unsigned int flags = imp->flags; \
175 UNLOCK(&imp->driverlock); \
1520 dns_sdlzimplementation_t *imp;
1526 imp = (dns_sdlzimplementation_t *) driverarg;
1546 sdlzdb->dlzimp = imp;
1587 dns_sdlzimplementation_t *imp;
1597 imp = (dns_sdlzimplementation_t *) driverarg;
1619 if (imp->methods->allowzonexfr != NULL) {
1620 MAYBE_LOCK(imp);
1621 result = imp->methods->allowzonexfr(imp->driverarg, dbdata,
1623 MAYBE_UNLOCK(imp);
1641 dns_sdlzimplementation_t *imp;
1655 imp = driverarg;
1658 if (imp->methods->create != NULL) {
1659 MAYBE_LOCK(imp);
1660 result = imp->methods->create(dlzname, argc, argv,
1661 imp->driverarg, dbdata);
1662 MAYBE_UNLOCK(imp);
1677 dns_sdlzimplementation_t *imp;
1682 imp = driverdata;
1685 if (imp->methods->destroy != NULL) {
1686 MAYBE_LOCK(imp);
1687 imp->methods->destroy(imp->driverarg, dbdata);
1688 MAYBE_UNLOCK(imp);
1702 dns_sdlzimplementation_t *imp;
1711 imp = (dns_sdlzimplementation_t *) driverarg;
1724 MAYBE_LOCK(imp);
1725 result = imp->methods->findzone(imp->driverarg, dbdata, namestr,
1727 MAYBE_UNLOCK(imp);
1746 dns_sdlzimplementation_t *imp;
1750 imp = (dns_sdlzimplementation_t *) driverarg;
1753 if (imp->methods->configure != NULL) {
1754 MAYBE_LOCK(imp);
1755 result = imp->methods->configure(view, dlzdb,
1756 imp->driverarg, dbdata);
1757 MAYBE_UNLOCK(imp);
1770 dns_sdlzimplementation_t *imp;
1783 imp = (dns_sdlzimplementation_t *) driverarg;
1784 if (imp->methods->ssumatch == NULL)
1816 MAYBE_LOCK(imp);
1817 ret = imp->methods->ssumatch(b_signer, b_name, b_addr, b_type, b_key,
1820 imp->driverarg, dbdata);
1821 MAYBE_UNLOCK(imp);
2042 dns_sdlzimplementation_t *imp;
2065 imp = isc_mem_get(mctx, sizeof(dns_sdlzimplementation_t));
2066 if (imp == NULL)
2070 memset(imp, 0, sizeof(dns_sdlzimplementation_t));
2073 imp->methods = methods;
2074 imp->driverarg = driverarg;
2075 imp->flags = flags;
2076 imp->mctx = NULL;
2079 isc_mem_attach(mctx, &imp->mctx);
2085 result = isc_mutex_init(&imp->driverlock);
2093 imp->dlz_imp = NULL;
2101 result = dns_dlzregister(drivername, &sdlzmethods, imp, mctx,
2102 &imp->dlz_imp);
2108 *sdlzimp = imp;
2114 DESTROYLOCK(&imp->driverlock);
2121 isc_mem_put(mctx, imp, sizeof(dns_sdlzimplementation_t));
2128 dns_sdlzimplementation_t *imp;
2139 imp = *sdlzimp;
2142 dns_dlzunregister(&imp->dlz_imp);
2145 DESTROYLOCK(&imp->driverlock);
2147 mctx = imp->mctx;
2153 isc_mem_put(mctx, imp, sizeof(dns_sdlzimplementation_t));