/
githubmirror
/
numactl
Обзор
Документация
Войти
/
githubmirror
/
numactl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v2.0.13
test/mynode.c
15 строк
270 B
Filipe Brandenburger
Cleanup whitespace from *.c and *.h files
15 июн 2018, 23:39
15 июн 2018, 23:39
8a2311a
Код
Авторство
О чём код?
#include <numa.h> #include <numaif.h> #include <stdio.h> int main(void) { int nd; char *man = numa_alloc(1000); *man = 1; if (get_mempolicy(&nd, NULL, 0, man, MPOL_F_NODE|MPOL_F_ADDR) < 0) perror("get_mempolicy"); else printf("my node %d\n", nd); return 0; }