Lines Matching defs:mask
13089 pr_warn("failed to get online CPU mask: %d\n", err);
13363 int parse_cpu_mask_str(const char *s, bool **mask, int *mask_sz)
13368 *mask = NULL;
13391 tmp = realloc(*mask, end + 1);
13396 *mask = tmp;
13408 free(*mask);
13409 *mask = NULL;
13413 int parse_cpu_mask_file(const char *fcpu, bool **mask, int *mask_sz)
13421 pr_warn("Failed to open cpu mask file %s: %d\n", fcpu, err);
13428 pr_warn("Failed to read cpu mask from %s: %d\n", fcpu, err);
13432 pr_warn("CPU mask is too big in file %s\n", fcpu);
13437 return parse_cpu_mask_str(buf, mask, mask_sz);
13445 bool *mask;
13451 err = parse_cpu_mask_file(fcpu, &mask, &n);
13457 if (mask[i])
13460 free(mask);