MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / copy_cache_obj_to_request

Function copy_cache_obj_to_request

libCacheSim/cache/cacheObj.c:15–21  ·  view source on GitHub ↗

* copy the cache_obj to req_dest * @param req_dest * @param cache_obj */

Source from the content-addressed store, hash-verified

13 * @param cache_obj
14 */
15void copy_cache_obj_to_request(request_t *req_dest,
16 const cache_obj_t *cache_obj) {
17 req_dest->obj_id = cache_obj->obj_id;
18 req_dest->obj_size = cache_obj->obj_size;
19 req_dest->next_access_vtime = cache_obj->misc.next_access_vtime;
20 req_dest->valid = true;
21}
22
23/**
24 * copy the data from request into cache_obj

Callers 15

_ARCv0_replaceFunction · 0.85
LeCaRv0_evictFunction · 0.85
S3FIFO_evict_smallFunction · 0.85
S3FIFO_evict_mainFunction · 0.85
S3FIFOd_evictFunction · 0.85
QDLP_evictFunction · 0.85
hit_RD_HIRinQFunction · 0.85
evictLIRFunction · 0.85
evictHIRFunction · 0.85
Cacheus_evictFunction · 0.85
CR_LFU_evictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected