text: Results 1 to 3 of 3
  I've been asked to build a new linux kernel that has fair group sharing (yes, it is implemented in newer kernel versions already, but I'm going to be doing it ...
  - Join Date
  - Feb 2010
  - 7
  New DEFINEs in include/linux/sched.h not found
  implemented in newer kernel versions already, but I'm going to be doing it using
  the rt scheduler). This is for an Operating Systems class.
  Now then, after I've built everything and recompiled the new kernel, it doesn't
  seem to be able to figure out that I have a new scheduling policy. In particular,
  even though I've placed...
  Code:
  #DEFINE SCHED_FSG 6
  (i.e. Trying to compile will give an "Undefined" error.)
  The only way I can make it recognize the newly added policy (so that I can do
  spiffy things like sched_setscheduler()) is to have the include from:
  Code:
  #include "/usr/src/linux-2.6.32.8/include/linux/sched.h"
  Code:
  #include <linux/sched.h>
  pointing some other version that my system knows of. If that's the case, then
  this is really bad, because it's likely that all of my other modified kernel files
  aren't being used either. Not really sure though.
  Any thoughts on this?
  Thanks,
  -Elleroth
  - Join Date
  - Apr 2009
  - Location
  - I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
  - 11,158
  Sorry, but the terms of use for these forums precludes giving help for school work. In any case, you should be able to determine why the correct headers are not being included when you compile. That's pretty much Linux/Unix Programming 101.Sometimes, real fast is almost as good as real time.
  Just remember, Semper Gumbi - always be flexible!
  - Join Date
  - Feb 2010
  - 7
  Understood.
  As it turns out (I just figured it out with some friends) there's some magical
  thing that happens when compiling. To get things to be recognized properly, we
  threw a syntax error, tried to compile, it stopped at the error, we fixed it, and then
  recompiled.
  Everything works fine now.