scheduler determination

Jeff Roberson jroberson at chesapeake.net
Sat May 24 20:00:47 PDT 2003


On Sat, 24 May 2003, Hiten Pandya wrote:

> Hi Gang.
>
> It would be really nice if there was a way to find out the name of
> the current scheduler in the system.  I have attached a patch which adds
> a sysctl called kern.sched.name, which does just that.
>
> Comments and suggestions welcome.
> Cheers.
>

To reduce the redundant code you should define sched_name[] extern in
sched.h and define the sysctl that reads it outside of each scheduler.
This makes the name part of the api.  A kernel wont compile with a
scheduler that is missing this part of the scheduler definition.

> 	-- Hiten (hmp at FreeBSD.ORG)
>



More information about the freebsd-arch mailing list