MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / free_aios2

Function free_aios2

g2all/700/lapse.js:376–390  ·  view source on GitHub ↗
(ids_p, num_ids)

Source from the content-addressed store, hash-verified

374}
375
376function free_aios2(ids_p, num_ids) {
377 const len = max_aio_ids;
378 const rem = num_ids % len;
379 const num_batches = (num_ids - rem) / len;
380 for (let bi = 0; bi < num_batches; bi++) {
381 const addr = ids_p.add((bi << 2) * len);
382 aio_multi_poll(addr, len);
383 aio_multi_delete(addr, len);
384 }
385 if (rem) {
386 const addr = ids_p.add((num_batches << 2) * len);
387 aio_multi_poll(addr, len);
388 aio_multi_delete(addr, len);
389 }
390}
391
392function get_cpu_affinity(mask) {
393 sysi("cpuset_getaffinity", CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof_cpuset_t_, mask.addr);

Callers 3

leak_kernel_addrsFunction · 0.70
double_free_reqs1Function · 0.70
kexploitFunction · 0.70

Calls 3

aio_multi_pollFunction · 0.70
aio_multi_deleteFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected