Aman Deep Gautam
Aman Deep Gautam

Reputation: 8737

schedule() function linux

I have an assignment to modify the scheduler code for linux kernel and I am stuck at the first point in my assignment. I am unable to find which file the schedule() is implemented. I am a newbie and for sure I feel that there would be some structured way to find which specific files functions are in. Any help appriciated.

[EDIT] I have source of kernel version 3.5.4

Upvotes: 2

Views: 6446

Answers (3)

man cipan
man cipan

Reputation: 1

If you want to find some function name, you can use grep -r "schedule" in the root of source tree and if you have ctags you can navigate to his definition from any occurrence of his call.

Upvotes: 0

Oleksii Shmalko
Oleksii Shmalko

Reputation: 3768

Actually I am new for linux kernel too. For navigation through linux kernel code I use:

  • cscope which is a good tool. There is a guide for using cscope with large projects such as linux kernel.
  • Online Linux Cross Reference. Especially the identifier search.

Upvotes: 1

b3h3m0th
b3h3m0th

Reputation: 1366

schedule() function is implemented in: linux/kernel/sched/core.c

if you want to learn more about process scheduling, ULK3 is probably perfect for you!

Upvotes: 2

Related Questions