Reputation: 8737
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
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
Reputation: 3768
Actually I am new for linux kernel too. For navigation through linux kernel code I use:
Upvotes: 1
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