location of folder named "kernel"
Hello...I am working on my final year project and which is improving the Process scheduling algorithm. I ve learnt that the location of the scheduling algorithm is "/kernel/sched.c" ... I am trying to locate the file to read the code but I cant locate a folder by name kernel under '/' ....I am running a Fedora 8 system with kernel version 2.6.25.14-69.fc8...Does the location of the sched.c file differ from distro to distro...If yes, then how to locate the file in fedora...Thanks in advance.
|
Hi,
There is a sched.c in the kernel source directory (don't know if Fedora installs this by default). My kernel source is located in: /usr/src/linux-2.6.X/ One of its subdirs is kernel, which holds the sched.c file (there are a lot more sched.c files, make sure you pick the correct one). Hope this helps. |
Quote:
So, my advise is to go here: http://www.eu.kernel.org/pub/linux/kernel/v2.6/ Those are stock 2.6 kernels, as released by the linux kernel team, vanilla kernels without any modification or 3rd party patch. Pick one kernel, whichever you prefer, download it, unpack it on your home, and use that same tree to develop your whole patch. This way you ensure that you are using a standard kernel, and by having it on your home you make sure that no update will break it and render useless your patch. EDITED: Just in case I wasn't clear enough, a patch made for a version of the kernel might not work against other version. So, if this is a project for the college, you should ask if the patch needs to work against a given version of the linux kernel, and if affirmative, use that version to design your patch. |
The package 'kernel-devel' installs to e.g.
/usr/src/kernels/2.6.23.1-42.fc8-i686 but only contains a limited set of files. Example again : The "full kernel-source" , I found : The package 'kernel-2.6.23.1-42.fc8.src.rpm' http://download.fedora.redhat.com/pu.../source/SRPMS/ which will "install" (unpack) to /usr/src/redhat/SOURCES/linux-2.6.23.tar.bz2 + 170 patches and other files. 'linux-2.6.23.tar.bz2' can be unpacked to /home/sugantha/tmp with 'tar xvf linux-2.6.23.tar.bz2' "sched.c" will then be in /home/sugantha/tmp/linux-2.6.23/kernel I did not find your version of kernel, 2.6.25.14 is probably available at kernel.org and you have some patches possibly still valid for this version, if needed. Regards |
Thanks a lot i92guboj, druuna, knudfl...
I am downloading the kernel version linux-2.6.26.5...if I use the header files of this version and when I am finally done with the implementation of sched.c, how do I integrate the kernel with the rest of the system to test it. This is too early at this stage but I would feel more comfortable to start with all this information...Thanks a ton. |
Hi,
You should look at the 'Linux Kernel in a Nutshell'. A real good kernel reference. There are other kernel references with the below link. This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links! |
Thanks Onebuck...
This project needs to be submitted only on the may of next year.So that gives me lot of time to learn the basics. Understanding the Linux kernel is also a good book I heard.Thanks for all your suggestions ppl... |
Quote:
|
Hi,
Quote:
BTW, Your Welcome. |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 08:21 AM. |