diff options
author | Damjan Marion <damarion@cisco.com> | 2024-02-29 16:14:27 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2024-03-04 08:53:08 +0000 |
commit | 4b6614030f384f7c8d847360cacf5c7f7560c6be (patch) | |
tree | b560c46a2cda2bf6b16e147a52a70ed83c3ce1ce /src/vppinfra/unix.h | |
parent | 2921e0234185f615d7530343b340573e2cb5caec (diff) |
vppinfra: add os_get_online_cpu_core() and os_get_online_cpu_node()
Type: improvement
Change-Id: I6f99f09c7724ce656a4f41a1d5f9c88d74c00faf
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/unix.h')
-rw-r--r-- | src/vppinfra/unix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/unix.h b/src/vppinfra/unix.h index 5b82c23a3c0..b43043a567b 100644 --- a/src/vppinfra/unix.h +++ b/src/vppinfra/unix.h @@ -53,6 +53,12 @@ clib_error_t *clib_file_contents (char *file, u8 ** result); /* As above but for /proc file system on Linux. */ clib_error_t *unix_proc_file_contents (char *file, u8 ** result); +/* Retrieve bitmap of online cpu cures */ +clib_bitmap_t *os_get_online_cpu_core_bitmap (); + +/* Retrieve bitmap of online cpu nodes (sockets) */ +clib_bitmap_t *os_get_online_cpu_node_bitmap (); + #endif /* included_clib_unix_h */ /* |