Searched defs:pool (Results 1 - 8 of 8) sorted by relevance

/bind-9.11.3/lib/isc/tests/
H A Dtaskpool_test.c35 isc_taskpool_t *pool = NULL; local
42 result = isc_taskpool_create(taskmgr, mctx, 8, 2, &pool);
44 ATF_REQUIRE_EQ(isc_taskpool_size(pool), 8);
46 isc_taskpool_destroy(&pool);
47 ATF_REQUIRE_EQ(pool, NULL);
90 /* resizing to larger size should make a new pool */
111 isc_taskpool_t *pool = NULL; local
119 result = isc_taskpool_create(taskmgr, mctx, 2, 2, &pool);
121 ATF_REQUIRE_EQ(isc_taskpool_size(pool), 2);
123 /* two tasks in pool; mak
150 isc_taskpool_t *pool = NULL; local
[all...]
H A Dpool_test.c20 #include <isc/pool.h>
49 /* Create a pool */
52 atf_tc_set_md_var(tc, "descr", "create a pool");
56 isc_pool_t *pool = NULL; local
63 result = isc_pool_create(mctx, 8, poolfree, poolinit, taskmgr, &pool);
65 ATF_REQUIRE_EQ(isc_pool_count(pool), 8);
67 isc_pool_destroy(&pool);
68 ATF_REQUIRE_EQ(pool, NULL);
73 /* Resize a pool */
76 atf_tc_set_md_var(tc, "descr", "expand a pool");
132 isc_pool_t *pool = NULL; local
[all...]
/bind-9.11.3/lib/isc/
H A Dpool.c19 #include <isc/pool.h>
32 void ** pool; member in struct:isc_pool
41 isc_pool_t *pool; local
43 pool = isc_mem_get(mctx, sizeof(*pool));
44 if (pool == NULL)
46 pool->count = count;
47 pool->free = NULL;
48 pool->init = NULL;
49 pool
69 isc_pool_t *pool = NULL; local
98 isc_pool_get(isc_pool_t *pool) argument
105 isc_pool_count(isc_pool_t *pool) argument
115 isc_pool_t *pool; local
161 isc_pool_t *pool = *poolp; local
[all...]
H A Dtaskpool.c40 isc_taskpool_t *pool; local
43 pool = isc_mem_get(mctx, sizeof(*pool));
44 if (pool == NULL)
47 pool->mctx = NULL;
48 isc_mem_attach(mctx, &pool->mctx);
49 pool->ntasks = ntasks;
50 pool->quantum = quantum;
51 pool->tmgr = tmgr;
52 pool
70 isc_taskpool_t *pool = NULL; local
95 isc_taskpool_gettask(isc_taskpool_t *pool, isc_task_t **targetp) argument
102 isc_taskpool_size(isc_taskpool_t *pool) argument
112 isc_taskpool_t *pool; local
157 isc_taskpool_t *pool = *poolp; local
169 isc_taskpool_setprivilege(isc_taskpool_t *pool, isc_boolean_t priv) argument
[all...]
H A Dentropy.c58 * Size of entropy pool in 32-bit words. This _MUST_ be a power of 2.
89 isc_uint32_t cursor; /*%< current add point in the pool */
93 isc_uint32_t pool[RND_POOLWORDS]; /*%< random pool data */ member in struct:__anon218
103 isc_entropypool_t pool; member in struct:isc_entropy
161 * The random pool "taps"
227 entropy += ent->pool.entropy;
229 ent->pool.entropy = ISC_MIN(entropy, RND_POOLBITS);
233 * Decrement the amount of entropy the pool has.
237 entropy = ISC_MIN(entropy, ent->pool
661 isc_entropypool_init(isc_entropypool_t *pool) argument
670 isc_entropypool_invalidate(isc_entropypool_t *pool) argument
[all...]
H A Dmem.c175 ISC_LINK(isc__mempool_t) link; /*%< next pool in this mem context */
178 size_t size; /*%< size of each item on this pool */
185 unsigned int gets; /*%< # of requests to this pool */
1402 const isc__mempool_t *pool; local
1423 * Note that since a pool can be locked now, these stats might be
1424 * somewhat off if the pool is in active use at the time the stats
1429 pool = ISC_LIST_HEAD(ctx->pools);
1430 if (pool != NULL) {
1453 while (pool != NULL) {
1456 pool
[all...]
/bind-9.11.3/lib/dns/
H A Ddispatch.c85 isc_mempool_t *depool; /*%< pool for dispatch events */
87 isc_mempool_t *rpool; /*%< pool for replies */
91 isc_mempool_t *bpool; /*%< pool for buffers */
93 isc_mempool_t *spool; /*%< pool for dispsocks */
216 isc_mempool_t *sepool; /*%< pool for socket events */
941 isc_mempool_t *pool = ev->ev_destroy_arg; local
943 isc_mempool_put(pool, sev);
2038 /* Create or adjust buffer pool */
2066 /* Create or adjust socket pool */
H A Dzone.c17 #include <isc/pool.h>
16223 isc_mem_setname(mctx, "zonemgr-pool", NULL);
16244 isc_taskpool_t *pool = NULL; local
16263 ntasks, 2, &pool);
16265 result = isc_taskpool_expand(&zmgr->zonetasks, ntasks, &pool);
16268 zmgr->zonetasks = pool;
16270 pool = NULL;
16273 ntasks, 2, &pool);
16275 result = isc_taskpool_expand(&zmgr->loadtasks, ntasks, &pool);
16278 zmgr->loadtasks = pool;
[all...]

Completed in 71 milliseconds