1# zx_system_get_num_cpus
2
3## NAME
4
5<!-- Updated by update-docs-from-abigen, do not edit. -->
6
7system_get_num_cpus - get number of logical processors on the system
8
9## SYNOPSIS
10
11<!-- Updated by update-docs-from-abigen, do not edit. -->
12
13```
14#include <zircon/syscalls.h>
15
16uint32_t zx_system_get_num_cpus(void);
17```
18
19## DESCRIPTION
20
21`zx_system_get_num_cpus()` returns the number of CPUs (logical processors)
22that exist on the system currently running.  This number cannot change
23during a run of the system, only at boot time.
24
25## RIGHTS
26
27<!-- Updated by update-docs-from-abigen, do not edit. -->
28
29TODO(ZX-2399)
30
31## RETURN VALUE
32
33`zx_system_get_num_cpus()` returns the number of CPUs.
34
35## ERRORS
36
37`zx_system_get_num_cpus()` cannot fail.
38
39## NOTES
40
41## SEE ALSO
42
43
44[system_get_physmem](system_get_physmem.md).
45