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

Function pin_to_core

g2all/700/lapse.js:400–404  ·  view source on GitHub ↗
(core)

Source from the content-addressed store, hash-verified

398}
399
400function pin_to_core(core) {
401 const mask = new Buffer(sizeof_cpuset_t_);
402 mask.write32(0, 1 << core);
403 set_cpu_affinity(mask);
404}
405
406function get_core_index(mask) {
407 let num = mem.read32(mask.addr);

Callers 1

kexploitFunction · 0.85

Calls 2

set_cpu_affinityFunction · 0.85
write32Method · 0.45

Tested by

no test coverage detected