I'm trying to printk the cpus that a specific task is allowed to run on.
Inside struct task_struct (which can be find here) there's the cpumask_t cpus_allowed which from what I understand contains exactly what Im looking for . Is that right ?
If so, how do I extract the cpus' numbers that are allowed ?
for example my comp has 8 logical cores - so Im expecting that somewhere inside cpus_allowed I can find those numbers (for example - 0,2,5)