Lines Matching refs:mask
278 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) in add_del_listener() argument
285 if (!cpumask_subset(mask, cpu_possible_mask)) in add_del_listener()
295 for_each_cpu(cpu, mask) { in add_del_listener()
322 for_each_cpu(cpu, mask) { in add_del_listener()
337 static int parse(struct nlattr *na, struct cpumask *mask) in parse() argument
354 ret = cpulist_parse(data, mask); in parse()
441 cpumask_var_t mask; in cmd_attr_register_cpumask() local
444 if (!alloc_cpumask_var(&mask, GFP_KERNEL)) in cmd_attr_register_cpumask()
446 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK], mask); in cmd_attr_register_cpumask()
449 rc = add_del_listener(info->snd_portid, mask, REGISTER); in cmd_attr_register_cpumask()
451 free_cpumask_var(mask); in cmd_attr_register_cpumask()
457 cpumask_var_t mask; in cmd_attr_deregister_cpumask() local
460 if (!alloc_cpumask_var(&mask, GFP_KERNEL)) in cmd_attr_deregister_cpumask()
462 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK], mask); in cmd_attr_deregister_cpumask()
465 rc = add_del_listener(info->snd_portid, mask, DEREGISTER); in cmd_attr_deregister_cpumask()
467 free_cpumask_var(mask); in cmd_attr_deregister_cpumask()