Home
last modified time | relevance | path

Searched refs:cpu_infos (Results 1 – 16 of 16) sorted by relevance

/libuv/src/unix/
H A Dqnx.c122 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 Dhaiku.c118 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 Dfreebsd.c182 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 Dhurd.c134 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 Dopenbsd.c184 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 Dnetbsd.c185 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 Ddarwin.c182 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 Dcygwin.c80 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 Dibmi.c287 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 Dsunos.c669 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 Dos390.c233 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 Daix.c1060 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 Dutil.c530 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 Duv-common.c925 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 Dmisc.rst391 .. 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 Duv.h1335 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);

Completed in 61 milliseconds