View Full Version : Lost in the kernel, sched.h?

01-02-2008, 05:51 PM
Hi, doing some kernel hacking but I'm a little lost ...

I want to extend the sched_param structure in /include/sched.h. So that when I create threads with pthreads I can set these new parameters. So I add what I need to the sched_param struct and compile the kernel.

But when I try my new sched_param, I think, its still the old one, just having sched_priority, so I look around and find that pthread.h only have sched_priority in its schad_param struct. Maybe not so strange since I did not change this file ...

I also find the file /usr/include/bits/sched.h on my installation (suse 10.3) and also this file only have sched_priority in it's sched_param struct.

The sched_param in sched.h in the kernel I compiled, and is using, kernelxx/include/linux/sched.h however have that correct parameters ...

So where did my sched_param struct go? where/how do I access it?