Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2003 23:00:45 -0400 (EDT)
From:      Jeff Roberson <jroberson@chesapeake.net>
To:        Hiten Pandya <hmp@freebsd.org>
Cc:        des@freebsd.org
Subject:   Re: scheduler determination
Message-ID:  <20030524225928.W69975-100000@mail.chesapeake.net>
In-Reply-To: <20030525004855.GA67985@perrin.int.nxad.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.ORG)
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030524225928.W69975-100000>