Crate free_cpus

source ·
Expand description

This crate exports a utility function that returns the set of available core IDs on the machine.

The set is determined by iterating over the /proc directory’s process statuses. The logic is heavily inspired by AFL++’s code.

Functions

  • Returns the set of available core IDs in your Linux machine.