MCPcopy Create free account
hub / github.com/beefytech/Beef / tcache_create_ctl

Function tcache_create_ctl

BeefRT/JEMalloc/src/ctl.c:2460–2477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2458/******************************************************************************/
2459
2460static int
2461tcache_create_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
2462 void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
2463 int ret;
2464 unsigned tcache_ind;
2465
2466 READONLY();
2467 VERIFY_READ(unsigned);
2468 if (tcaches_create(tsd, b0get(), &tcache_ind)) {
2469 ret = EFAULT;
2470 goto label_return;
2471 }
2472 READ(tcache_ind, unsigned);
2473
2474 ret = 0;
2475label_return:
2476 return ret;
2477}
2478
2479static int
2480tcache_flush_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,

Callers

nothing calls this directly

Calls 2

tcaches_createFunction · 0.85
b0getFunction · 0.85

Tested by

no test coverage detected