Вы ищете #include <linux/sched.h>. Вот где объявлено task_struct.
#include <linux/sched.h>
task_struct