Implement syscalls.by_id