SCIENTIFIC-LINUX-USERS Archives

March 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Akemi Yagi <[log in to unmask]>
Reply To:
Akemi Yagi <[log in to unmask]>
Date:
Wed, 19 Mar 2014 08:53:20 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
On Wed, Mar 19, 2014 at 7:56 AM, Mahmood Naderan <[log in to unmask]> 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

ATOM RSS1 RSS2