Searched refs:pool (Results 1 - 13 of 13) sorted by relevance

/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/isc/include/isc/
H A Dtaskpool.h19 * \brief A task pool is a mechanism for sharing a small number of tasks
55 * Create a task pool of "ntasks" tasks, each with quantum
68 *\li On success, '*taskp' points to the new task pool.
78 isc_taskpool_gettask(isc_taskpool_t *pool, isc_task_t **targetp);
80 * Attach to a task from the pool. Currently the next task is chosen
81 * from the pool at random. (This may be changed in the future to
86 isc_taskpool_size(isc_taskpool_t *pool);
88 * Returns the number of tasks in the task pool 'pool'.
96 * If 'size' is larger than the number of tasks in the pool pointe
[all...]
H A Dpool.h16 /*! \file isc/pool.h
17 * \brief An object pool is a mechanism for sharing a small pool of
59 * Create a pool of "count" object pointers. If 'free' is not NULL,
75 *\li On success, '*poolp' points to the new object pool.
85 isc_pool_get(isc_pool_t *pool);
87 * Returns a pointer to an object from the pool. Currently the object
88 * is chosen from the pool at random. (This may be changed in the future
93 isc_pool_count(isc_pool_t *pool);
95 * Returns the number of objcts in the pool 'poo
[all...]
/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/win32/
H A Dentropy.c74 * pool.
94 * partially full pool (say, > 1/4th of the pool) we probably don't
99 * defined as 1/4th of the pool.
112 if ((ent->pool.entropy >= RND_POOLBITS / 4)
113 && (ent->pool.pseudo <= RND_POOLBITS / 4))
125 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy);
/bind-9.11.3/lib/isc/unix/
H A Dentropy.c167 * entropy pool fill back up (at least
240 * pool.
259 * partially full pool (say, > 1/4th of the pool) we probably don't
264 * defined as 1/4th of the pool.
277 if ((ent->pool.entropy >= RND_POOLBITS / 4)
278 && (ent->pool.pseudo <= RND_POOLBITS / 4))
290 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy);
/bind-9.11.3/bin/tests/
H A Dnamed.conf82 use-id-pool yes;
/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 2699 milliseconds