Lines Matching defs:path
103 void *tst_numa_map(const char *path, size_t size)
109 if (path) {
110 fd = SAFE_OPEN(path, O_CREAT | O_EXCL | O_RDWR, 0666);
118 if (path) {
120 SAFE_UNLINK(path);
128 char path[1024];
138 snprintf(path, sizeof(path), "/sys/devices/system/node/node%i/meminfo", node);
140 if (access(path, F_OK)) {
141 tst_res(TINFO, "File '%s' does not exist! NUMA not enabled?", path);
145 FILE *fp = fopen(path, "r");
147 tst_brk(TBROK | TERRNO, "Failed to open '%s'", path);
165 tst_res(TWARN, "Failed to parse '%s'", path);