From 3b8e8078408feb49cd41272935f3df2e35faa092 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 24 Jun 2024 10:51:26 -0400 Subject: Add get_cpu_count() * Exposes STASIS_CPU_COUNT and CPU_COUNT to the runtime environment --- include/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/utils.h b/include/utils.h index 2c80e77..eee2e30 100644 --- a/include/utils.h +++ b/include/utils.h @@ -351,4 +351,10 @@ int redact_sensitive(const char **to_redact, size_t to_redact_size, char *src, c */ struct StrList *listdir(const char *path); +/** + * Get CPU count + * @return CPU count on success, zero on error + */ +long get_cpu_count(); + #endif //STASIS_UTILS_H -- cgit