getAllPIDs

fnint[] getAllPIDs() @safe nothrow

Gets all process IDs using kvm.

Note

This function requires appropriate permissions to access /dev/kmem.

Returns

Array of process IDs.

Example:

auto pids = getAllPIDs();
writeln("Process count: ", pids.length);