Lines Matching refs:mask
293 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) in add_del_listener() argument
299 if (!cpumask_subset(mask, cpu_possible_mask)) in add_del_listener()
303 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()
434 cpumask_var_t mask; in taskstats_user_cmd() local
436 if (!alloc_cpumask_var(&mask, GFP_KERNEL)) in taskstats_user_cmd()
439 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK], mask); in taskstats_user_cmd()
443 rc = add_del_listener(info->snd_pid, mask, REGISTER); in taskstats_user_cmd()
447 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK], mask); in taskstats_user_cmd()
451 rc = add_del_listener(info->snd_pid, mask, DEREGISTER); in taskstats_user_cmd()
453 free_cpumask_var(mask); in taskstats_user_cmd()
456 free_cpumask_var(mask); in taskstats_user_cmd()