Searched refs:cache (Results 1 - 25 of 391) sorted by relevance

1234567891011>>

/freebsd-13-stable/usr.sbin/nscd/
H A Dnscd.conf6 enable-cache passwd yes
7 enable-cache group yes
8 enable-cache hosts yes
9 enable-cache services yes
10 enable-cache protocols yes
11 enable-cache rpc yes
12 enable-cache networks yes
/freebsd-13-stable/contrib/processor-trace/libipt/src/
H A Dpt_tnt_cache.c34 void pt_tnt_cache_init(struct pt_tnt_cache *cache) argument
36 if (!cache)
39 cache->tnt = 0ull;
40 cache->index = 0ull;
43 int pt_tnt_cache_is_empty(const struct pt_tnt_cache *cache) argument
45 if (!cache)
48 return cache->index == 0;
51 int pt_tnt_cache_query(struct pt_tnt_cache *cache) argument
55 if (!cache)
58 if (!cache
67 pt_tnt_cache_update_tnt(struct pt_tnt_cache *cache, const struct pt_packet_tnt *packet, const struct pt_config *config) argument
[all...]
H A Dpt_msec_cache.c36 int pt_msec_cache_init(struct pt_msec_cache *cache) argument
38 if (!cache)
41 memset(cache, 0, sizeof(*cache));
46 void pt_msec_cache_fini(struct pt_msec_cache *cache) argument
48 if (!cache)
51 (void) pt_msec_cache_invalidate(cache);
52 pt_msec_fini(&cache->msec);
55 int pt_msec_cache_invalidate(struct pt_msec_cache *cache) argument
60 if (!cache)
76 pt_msec_cache_read(struct pt_msec_cache *cache, const struct pt_mapped_section **pmsec, struct pt_image *image, uint64_t vaddr) argument
99 pt_msec_cache_fill(struct pt_msec_cache *cache, const struct pt_mapped_section **pmsec, struct pt_image *image, const struct pt_asid *asid, uint64_t vaddr) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/
H A Dautogen.sh4 rm -Rf autom4te.cache
/freebsd-13-stable/contrib/libarchive/libarchive/
H A Darchive_read_disk_set_standard_lookup.c72 } cache[name_cache_size]; member in struct:name_cache
83 * a simple cache to accelerate such lookups---into the archive_read_disk
102 "Can't allocate uname/gname lookup cache");
124 struct name_cache *cache = (struct name_cache *)data; local
127 if (cache != NULL) {
128 for (i = 0; i < cache->size; i++) {
129 if (cache->cache[i].name != NULL &&
130 cache->cache[
142 lookup_name(struct name_cache *cache, const char * (*lookup_fn)(struct name_cache *, id_t), id_t id) argument
187 lookup_uname_helper(struct name_cache *cache, id_t id) argument
232 lookup_uname_helper(struct name_cache *cache, id_t id) argument
256 lookup_gname_helper(struct name_cache *cache, id_t id) argument
299 lookup_gname_helper(struct name_cache *cache, id_t id) argument
[all...]
/freebsd-13-stable/contrib/subversion/subversion/libsvn_subr/
H A Dcache-inprocess.c2 * cache-inprocess.c: in-memory caching for Subversion
30 #include "cache.h"
33 /* The (internal) cache object. */
35 /* A user-defined identifier for this cache instance. */
42 /* Used to copy values into the cache. */
45 /* Used to copy values out of the cache. */
48 /* Maximum number of pages that this cache instance may allocate */
53 /* Number of cache entries stored on each page. Must be at least 1. */
82 /* A lock for intra-process synchronization to the cache, or NULL if
83 * the cache'
139 insert_page(inprocess_cache_t *cache, struct cache_page *page) argument
153 move_page_to_front(inprocess_cache_t *cache, struct cache_page *page) argument
172 duplicate_key(inprocess_cache_t *cache, const void *key, apr_pool_t *pool) argument
183 inprocess_cache_get_internal(char **buffer, apr_size_t *size, inprocess_cache_t *cache, const void *key, apr_pool_t *result_pool) argument
218 inprocess_cache_t *cache = cache_void; local
249 inprocess_cache_has_key_internal(svn_boolean_t *found, inprocess_cache_t *cache, const void *key, apr_pool_t *scratch_pool) argument
265 inprocess_cache_t *cache = cache_void; local
285 erase_page(inprocess_cache_t *cache, struct cache_page *page) argument
312 inprocess_cache_set_internal(inprocess_cache_t *cache, const void *key, void *value, apr_pool_t *scratch_pool) argument
444 inprocess_cache_t *cache = cache_void; local
484 inprocess_cache_t *cache = cache_void; local
497 inprocess_cache_get_partial_internal(void **value_p, svn_boolean_t *found, inprocess_cache_t *cache, const void *key, svn_cache__partial_getter_func_t func, void *baton, apr_pool_t *result_pool) argument
527 inprocess_cache_t *cache = cache_void; local
545 inprocess_cache_set_partial_internal(inprocess_cache_t *cache, const void *key, svn_cache__partial_setter_func_t func, void *baton, apr_pool_t *scratch_pool) argument
574 inprocess_cache_t *cache = cache_void; local
595 inprocess_cache_t *cache = cache_void; local
600 inprocess_cache_get_info_internal(inprocess_cache_t *cache, svn_cache__info_t *info, apr_pool_t *result_pool) argument
625 inprocess_cache_t *cache = cache_void; local
658 inprocess_cache_t *cache = apr_pcalloc(pool, sizeof(*cache)); local
[all...]
H A Dcache.c2 * cache.c: cache interface for Subversion
24 #include "cache.h"
27 svn_cache__set_error_handler(svn_cache__t *cache, argument
32 cache->error_handler = handler;
33 cache->error_baton = baton;
38 svn_cache__is_cachable(svn_cache__t *cache, argument
41 /* having no cache means we can't cache anything */
42 if (cache
51 handle_error(svn_cache__t *cache, svn_error_t *err, apr_pool_t *pool) argument
67 svn_cache__get(void **value_p, svn_boolean_t *found, svn_cache__t *cache, const void *key, apr_pool_t *result_pool) argument
99 svn_cache__has_key(svn_boolean_t *found, svn_cache__t *cache, const void *key, apr_pool_t *scratch_pool) argument
119 svn_cache__set(svn_cache__t *cache, const void *key, void *value, apr_pool_t *scratch_pool) argument
135 svn_cache__iter(svn_boolean_t *completed, svn_cache__t *cache, svn_iter_apr_hash_cb_t user_cb, void *user_baton, apr_pool_t *scratch_pool) argument
155 svn_cache__get_partial(void **value, svn_boolean_t *found, svn_cache__t *cache, const void *key, svn_cache__partial_getter_func_t func, void *baton, apr_pool_t *result_pool) argument
191 svn_cache__set_partial(svn_cache__t *cache, const void *key, svn_cache__partial_setter_func_t func, void *baton, apr_pool_t *scratch_pool) argument
208 svn_cache__get_info(svn_cache__t *cache, svn_cache__info_t *info, svn_boolean_t reset, apr_pool_t *result_pool) argument
[all...]
/freebsd-13-stable/contrib/processor-trace/libipt/internal/include/
H A Dpt_tnt_cache.h53 /* Initialize (or reset) the tnt cache. */
54 extern void pt_tnt_cache_init(struct pt_tnt_cache *cache);
56 /* Check if the tnt cache is empty.
58 * Returns 0 if the tnt cache is not empty.
59 * Returns > 0 if the tnt cache is empty.
60 * Returns -pte_invalid if @cache is NULL.
62 extern int pt_tnt_cache_is_empty(const struct pt_tnt_cache *cache);
66 * This consumes the returned tnt indicator in the cache.
70 * Returns -pte_invalid if @cache is NULL.
73 extern int pt_tnt_cache_query(struct pt_tnt_cache *cache);
[all...]
H A Dpt_msec_cache.h37 /* A single-entry mapped section cache.
39 * The cached section is implicitly mapped and unmapped. The cache is not
45 * The cache is valid if and only if @msec.section is not NULL.
48 * release the cached section and to invalidate the cache.
56 /* Initialize the cache. */
57 extern int pt_msec_cache_init(struct pt_msec_cache *cache);
59 /* Finalize the cache. */
60 extern void pt_msec_cache_fini(struct pt_msec_cache *cache);
62 /* Invalidate the cache. */
63 extern int pt_msec_cache_invalidate(struct pt_msec_cache *cache);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cache/
H A Dcleanup.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
H A Dsetup.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
H A Dcache_003_pos.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Adding an extra cache device works
40 # 1. Create pool with separated cache devices.
41 # 2. Add an extra cache devices
49 log_assert "Adding an extra cache device works."
55 cache $LDEV
57 cache
[all...]
H A Dcache_008_neg.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # A mirror/raidz/raidz2 cache can not be added to existed pool.
40 # 1. Create pool with or without cache.
41 # 2. Add a mirror/raidz/raidz2 cache to this pool.
48 log_assert "A raidz/raidz2 cache can not be added to existed pool."
56 cache $LDEV
58 log_mustnot zpool add $TESTPOOL cache
[all...]
H A Dcache_011_pos.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Remove cache device from pool with spare device should succeed.
40 # 1. Create pool with cache devices and spare devices
41 # 2. Remove cache device from the pool
54 log_assert "Remove cache device from pool with spare device should succeed"
60 cache $LDEV spare $LDEV2
68 log_pass "Remove cache devic
[all...]
H A Dcache_001_pos.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Creating a pool with a cache device succeeds.
40 # 1. Create pool with separated cache devices.
47 log_assert "Creating a pool with a cache device succeeds."
53 cache $LDEV
65 log_pass "Creating a pool with a cache device succeeds."
H A Dcache_002_pos.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Adding a cache device to normal pool works.
41 # 2. Add cache devices with different configuration
48 log_assert "Adding a cache device to normal pool works."
54 log_must zpool add $TESTPOOL cache $LDEV
65 log_pass "Adding a cache device to normal pool works."
H A Dcache_004_neg.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Attaching a cache device fails.
40 # 1. Create pool with separated cache devices.
41 # 2. Attaching a cache device for existing cache device
48 log_assert "Attaching a cache device fails for an existing cache devic
[all...]
H A Dcache_005_neg.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Replacing a cache device fails.
40 # 1. Create pool with cache devices.
41 # 2. Replacing one cache device
49 log_assert "Replacing a cache device fails."
55 cache $LDEV
65 log_pass "Replacing a cache devic
[all...]
H A Dcache_007_neg.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # A mirror/raidz/raidz2 cache is not supported.
47 log_assert "A mirror/raidz/raidz2 cache is not supported."
55 cache $cachetype $LDEV $LDEV2
63 log_pass "A mirror/raidz/raidz2 cache is not supported."
H A Dcache_009_pos.ksh32 . $STF_SUITE/tests/functional/cache/cache.cfg
33 . $STF_SUITE/tests/functional/cache/cache.kshlib
37 # Offline and online a cache device succeed.
40 # 1. Create pool with mirror cache devices.
41 # 2. Offine and online a cache device
49 log_assert "Offline and online a cache device succeed."
55 cache $LDEV $LDEV2
69 log_pass "Offline and online a cache devic
[all...]
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cache/
H A Dcache_008_neg.ksh32 . $STF_SUITE/tests/cache/cache.kshlib
41 # A mirror/raidz/raidz2 cache can not be added to existed pool.
44 # 1. Create pool with or without cache.
45 # 2. Add a mirror/raidz/raidz2 cache to this pool.
60 log_assert "A raidz/raidz2 cache can not be added to existed pool."
68 cache $LDEV
70 log_mustnot $ZPOOL add $TESTPOOL cache $cachetype $LDEV2
79 log_pass "A mirror/raidz/raidz2 cache can not be added to existed pool."
H A Dcleanup.ksh32 . $STF_SUITE/tests/cache/cache.kshlib
/freebsd-13-stable/crypto/openssl/crypto/x509v3/
H A Dpcy_cache.c22 * Set cache entry according to CertificatePolicies extension. Note: this
30 X509_POLICY_CACHE *cache = x->policy_cache; local
36 cache->data = sk_X509_POLICY_DATA_new(policy_data_cmp);
37 if (cache->data == NULL) {
52 if (cache->anyPolicy) {
56 cache->anyPolicy = data;
57 } else if (sk_X509_POLICY_DATA_find(cache->data, data) >=0 ) {
60 } else if (!sk_X509_POLICY_DATA_push(cache->data, data)) {
75 sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free);
76 cache
83 X509_POLICY_CACHE *cache; local
178 policy_cache_free(X509_POLICY_CACHE *cache) argument
200 policy_cache_find_data(const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_kmem.c145 struct kmem_cache *cache = private; local
147 return (cache->kc_constructor(mem, cache->kc_private, flags));
153 struct kmem_cache *cache = private; local
155 cache->kc_destructor(mem, cache->kc_private);
163 kmem_cache_t *cache; local
167 cache = kmem_alloc(sizeof (*cache), KM_SLEEP);
168 strlcpy(cache
185 kmem_cache_destroy(kmem_cache_t *cache) argument
194 kmem_cache_alloc(kmem_cache_t *cache, int flags) argument
209 kmem_cache_free(kmem_cache_t *cache, void *buf) argument
243 kmem_cache_reap_soon(kmem_cache_t *cache) argument
308 spl_kmem_cache_inuse(kmem_cache_t *cache) argument
314 spl_kmem_cache_entry_size(kmem_cache_t *cache) argument
[all...]
/freebsd-13-stable/cddl/compat/opensolaris/lib/libumem/
H A Dumem.c110 umem_cache_t *cache = malloc(sizeof(umem_cache_t)); local
111 if(cache == NULL)
114 cache->constructor = constructor;
115 cache->destructor = destructor;
116 cache->callback_data = callback_data;
117 cache->bufsize = bufsize;
119 return cache;
125 void *umem_cache_alloc(umem_cache_t *cache, int flags) argument
127 void *buf = malloc(cache->bufsize);
137 if(cache
155 umem_cache_free(umem_cache_t *cache, void *buffer) argument
166 umem_cache_destroy(umem_cache_t *cache) argument
[all...]

Completed in 224 milliseconds

1234567891011>>