In the version 2.6.15 kernel, I got that I can rewrite the task_struct
in the file (include/linux/sched.h),like:
struct task_struct {
unsigned did_exec:1;
pid_t pid;
pid_t tgid;
...
char hide;
}
But, unfortunately, when I upgraded to the version 2.6.30.5, I looked through the same file, I just find a declaration of the task_struct
, like:
struct task_struct;
And I have no idea which file I should refer to for the purpose of specifying my own task_struct
? Can someone help me?