when/how is the schedule() function actually called?

Valdis Kl=?utf-8?Q?=c4=93?=tnieks valdis.kletnieks at vt.edu
Fri Dec 8 12:44:56 EST 2023


On Sat, 09 Dec 2023 00:16:32 +0800, Dawei Li said:
> Greetings!

> (Although I am using the 2.6.34 version, I believe the question is generally
> applicable to any kernel version.)

That is, in general, a bad assumption when you are looking at kernel versions
old enough that they count as digital archaeology....

[/usr/src/linux-next] git show v2.6.34
tag v2.6.34
Tagger: Linus Torvalds <torvalds at linux-foundation.org>
Date:   Sun May 16 14:17:44 2010 -0700
[/usr/src/linux-next] git diff --shortstat  v2.6.34..next-20231205
 96965 files changed, 32056985 insertions(+), 7606202 deletions(-)

Given that next-20231205 has just over 33 million lines of code, we're well
into territory where there's a vanishing small percentage of code still
remaining unchanged from 2010.

And yes, that means that even basic functions schedule() and friends have been
reworked in he past decade and a half....




More information about the Kernelnewbies mailing list