Lines Matching defs:mask
12575 pr_warn("failed to get online CPU mask: %d\n", err);
12849 int parse_cpu_mask_str(const char *s, bool **mask, int *mask_sz)
12854 *mask = NULL;
12877 tmp = realloc(*mask, end + 1);
12882 *mask = tmp;
12894 free(*mask);
12895 *mask = NULL;
12899 int parse_cpu_mask_file(const char *fcpu, bool **mask, int *mask_sz)
12907 pr_warn("Failed to open cpu mask file %s: %d\n", fcpu, err);
12914 pr_warn("Failed to read cpu mask from %s: %d\n", fcpu, err);
12918 pr_warn("CPU mask is too big in file %s\n", fcpu);
12923 return parse_cpu_mask_str(buf, mask, mask_sz);
12931 bool *mask;
12937 err = parse_cpu_mask_file(fcpu, &mask, &n);
12943 if (mask[i])
12946 free(mask);