On Wed, Mar 19, 2014 at 7:56 AM, Mahmood Naderan <nt_mahm...@yahoo.com> wrote: > The goal is to find the sched.c (the linux scheduler source code). It seems > that the kernel sources are installed from repository however there is no > such kernel-source or similar things. > > Can some find sched.c on his system? > > # rpm -qa | grep kernel > > dracut-kernel-004-336.el6.noarch > kernel-firmware-2.6.32-279.5.1.el6.noarch > kernel-headers-2.6.32-279.22.1.el6.x86_64 > kernel-2.6.32-279.5.1.el6.x86_64 > kernel-devel-2.6.32-279.5.1.el6.x86_64 > > Regards, > Mahmood
If you are aiming to get the sched.c file included in the source of SL's kernel 2.6.32-279.5.1.el6, you need to get hold of kernel-2.6.32-279.5.1.el6.src.rpm. For example, it is here: http://mirror.mcs.anl.gov/pub/scientific-linux/6.2/SRPMS/vendor/kernel-2.6.32-279.5.1.el6.src.rpm You can find the instructions on how to get a full kernel source in: http://wiki.centos.org/HowTos/I_need_the_Kernel_Source#head-a8dae925eec15786df9f6f8c918eff16bf67be0d (Just use the .src.rpm referenced above.) When you are finished with the procedure, the kernel source tree will be found in ~/rpmbuild/BUILD/kernel*/linux*/ Hope this helps, Akemi