Linux kernel has the following definition inside sched_class struct definition.
#ifdef CONFIG_SMP
int (*select_task_rq)(struct task_struct *p, int task_cpu, int sd_flag, int flags);
.......
.......
Now what does this line mean, I have fairly good knowledge in C & C++. But I was having hard time understanding this declaration construct:
int (*select_task_rq)(struct task_struct *p, int task_cpu, int sd_flag, int flags);
Can someone please explain what does this mean and what it does.
Thanks