/libuv/src/unix/ |
H A D | qnx.c | 122 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 131 *cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos)); in uv_cpu_info() 132 if (*cpu_infos == NULL) in uv_cpu_info() 136 (*cpu_infos)[i].model = strdup(&strings->data[cpuinfo->name]); in uv_cpu_info() 137 (*cpu_infos)[i].speed = cpuinfo->speed; in uv_cpu_info()
|
H A D | haiku.c | 118 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 127 if (cpu_infos == NULL || count == NULL) in uv_cpu_info() 158 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info() 159 if (*cpu_infos == NULL) in uv_cpu_info() 163 cpu_info = *cpu_infos; in uv_cpu_info()
|
H A D | freebsd.c | 182 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 228 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 229 if (!(*cpu_infos)) in uv_cpu_info() 239 uv__free(*cpu_infos); in uv_cpu_info() 247 uv__free(*cpu_infos); in uv_cpu_info() 253 uv__free(*cpu_infos); in uv_cpu_info() 258 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
H A D | hurd.c | 134 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 149 *cpu_infos = uv__calloc(hbi.avail_cpus, sizeof(**cpu_infos)); in uv_cpu_info() 150 if (*cpu_infos == NULL) { in uv_cpu_info() 160 *cpu_infos = NULL; in uv_cpu_info()
|
H A D | openbsd.c | 184 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 205 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 206 if (!(*cpu_infos)) in uv_cpu_info() 223 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info() 240 uv__free((*cpu_infos)[j].model); in uv_cpu_info() 242 uv__free(*cpu_infos); in uv_cpu_info() 243 *cpu_infos = NULL; in uv_cpu_info()
|
H A D | netbsd.c | 185 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 221 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 222 if (!(*cpu_infos)) { in uv_cpu_info() 224 uv__free(*cpu_infos); in uv_cpu_info() 229 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
H A D | darwin.c | 182 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 214 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info() 215 if (!(*cpu_infos)) { in uv_cpu_info() 223 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
|
H A D | cygwin.c | 80 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 82 *cpu_infos = NULL; in uv_cpu_info()
|
H A D | ibmi.c | 287 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 291 *cpu_infos = NULL; in uv_cpu_info() 296 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); in uv_cpu_info() 297 if (!*cpu_infos) { in uv_cpu_info() 301 cpu_info = *cpu_infos; in uv_cpu_info()
|
H A D | sunos.c | 669 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 686 *cpu_infos = uv__malloc(lookup_instance * sizeof(**cpu_infos)); in uv_cpu_info() 687 if (!(*cpu_infos)) { in uv_cpu_info() 694 cpu_info = *cpu_infos; in uv_cpu_info() 716 cpu_info = *cpu_infos; in uv_cpu_info()
|
H A D | os390.c | 233 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 252 *cpu_infos = uv__malloc(*count * sizeof(uv_cpu_info_t)); in uv_cpu_info() 253 if (!*cpu_infos) in uv_cpu_info() 256 cpu_info = *cpu_infos; in uv_cpu_info() 262 uv_free_cpu_info(*cpu_infos, idx); in uv_cpu_info()
|
H A D | aix.c | 1060 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument 1090 *cpu_infos = (uv_cpu_info_t*) uv__malloc(ncpus * sizeof(uv_cpu_info_t)); in uv_cpu_info() 1091 if (!*cpu_infos) { in uv_cpu_info() 1098 cpu_info = *cpu_infos; in uv_cpu_info()
|
/libuv/src/win/ |
H A D | util.c | 530 uv_cpu_info_t* cpu_infos; in uv_cpu_info() local 540 cpu_infos = NULL; in uv_cpu_info() 549 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info() 550 if (cpu_infos == NULL) { in uv_cpu_info() 619 cpu_info = &cpu_infos[i]; in uv_cpu_info() 636 *cpu_infos_ptr = cpu_infos; in uv_cpu_info() 641 if (cpu_infos != NULL) { in uv_cpu_info() 644 uv__free(cpu_infos[i].model); in uv_cpu_info() 647 uv__free(cpu_infos); in uv_cpu_info()
|
/libuv/src/ |
H A D | uv-common.c | 925 void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count) { in uv_free_cpu_info() argument 928 uv__free(cpu_infos); in uv_free_cpu_info() 933 uv__free(cpu_infos[i].model); in uv_free_cpu_info() 935 uv__free(cpu_infos); in uv_free_cpu_info()
|
/libuv/docs/src/ |
H A D | misc.rst | 391 .. c:function:: int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) 393 Gets information about the CPUs on the system. The `cpu_infos` array will 399 .. c:function:: void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count) 401 Frees the `cpu_infos` array previously allocated with :c:func:`uv_cpu_info`.
|
/libuv/include/ |
H A D | uv.h | 1335 UV_EXTERN int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count); 1336 UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count);
|