Lines Matching defs:mem
22 #include <isc/mem.h>
175 ISC_LINK(isc__mempool_t) link; /*%< next pool in this mem context */
289 isc___mempool_put(isc_mempool_t *mpctx, void *mem FLARG);
713 check_overrun(void *mem, size_t size, size_t new_size) {
716 cp = (unsigned char *)mem;
728 mem_putunlocked(isc__mem_t *ctx, void *mem, size_t size) {
736 memset(mem, 0xde, size); /* Mnemonic for "dead". */
738 (ctx->memfree)(ctx->arg, mem);
748 check_overrun(mem, size, new_size);
750 memset(mem, 0xde, new_size); /* Mnemonic for "dead". */
756 ((element *)mem)->next = ctx->freelists[new_size];
757 ctx->freelists[new_size] = (element *)mem;
804 mem_put(isc__mem_t *ctx, void *mem, size_t size) {
806 INSIST(((unsigned char *)mem)[size] == 0xbe);
809 memset(mem, 0xde, size); /* Mnemonic for "dead". */
813 (ctx->memfree)(ctx->arg, mem);
2049 isc___mempool_put(isc_mempool_t *mpctx0, void *mem FLARG) {
2055 REQUIRE(mem != NULL);
2068 DELETE_TRACE(mctx, mem, mpctx->size, file, line);
2079 mem_putunlocked(mctx, mem, mpctx->size);
2081 mem_putstats(mctx, mem, mpctx->size);
2082 mem_put(mctx, mem, mpctx->size);
2094 item = (element *)mem;
2943 * (see lib/isc/mem.c).
2998 isc__mempool_put(isc_mempool_t *mpctx, void *mem FLARG) {
3002 isc___mempool_put(mpctx, mem FLARG_PASS);
3004 mpctx->methods->put(mpctx, mem FLARG_PASS);