Since someone (hi ahoka) added a reference to non-existant sched_m2(9),

add at least a stub now.
This commit is contained in:
dsieger 2010-03-06 16:42:55 +00:00
parent bc76b1d5b0
commit 9347a4aa25
4 changed files with 70 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1402 2010/03/04 08:13:29 jruoho Exp $
# $NetBSD: mi,v 1.1403 2010/03/06 16:42:55 dsieger Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -9397,6 +9397,7 @@
./usr/share/man/cat9/rw_write_held.0 comp-sys-catman .cat
./usr/share/man/cat9/rwlock.0 comp-sys-catman .cat
./usr/share/man/cat9/sched_4bsd.0 comp-sys-catman .cat
./usr/share/man/cat9/sched_m2.0 comp-sys-catman .cat
./usr/share/man/cat9/sched_lock_idle.0 comp-obsolete obsolete
./usr/share/man/cat9/sched_psignal.0 comp-sys-catman .cat
./usr/share/man/cat9/sched_unlock_idle.0 comp-obsolete obsolete
@ -15024,6 +15025,7 @@
./usr/share/man/html9/rw_write_held.html comp-sys-htmlman html
./usr/share/man/html9/rwlock.html comp-sys-htmlman html
./usr/share/man/html9/sched_4bsd.html comp-sys-htmlman html
./usr/share/man/html9/sched_m2.html comp-sys-htmlman html
./usr/share/man/html9/sched_psignal.html comp-sys-htmlman html
./usr/share/man/html9/scsipi.html comp-sys-htmlman html
./usr/share/man/html9/secmodel.html comp-sys-htmlman html
@ -20842,6 +20844,7 @@
./usr/share/man/man9/rw_write_held.9 comp-sys-man .man
./usr/share/man/man9/rwlock.9 comp-sys-man .man
./usr/share/man/man9/sched_4bsd.9 comp-sys-man .man
./usr/share/man/man9/sched_m2.9 comp-sys-man .man
./usr/share/man/man9/sched_lock_idle.9 comp-obsolete obsolete
./usr/share/man/man9/sched_psignal.9 comp-sys-man .man
./usr/share/man/man9/sched_unlock_idle.9 comp-obsolete obsolete

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.319 2010/03/04 08:09:51 jruoho Exp $
# $NetBSD: Makefile,v 1.320 2010/03/06 16:42:56 dsieger Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@ -43,7 +43,7 @@ MAN= accept_filter.9 accf_data.9 accf_http.9 \
preempt.9 putter.9 \
radio.9 ras.9 rasops.9 ratecheck.9 resettodr.9 rnd.9 roundup.9 \
rssadapt.9 rt_timer.9 rwlock.9 RUN_ONCE.9 \
sched_4bsd.9 scsipi.9 \
sched_4bsd.9 sched_m2.9 scsipi.9 \
secmodel.9 secmodel_bsd44.9 secmodel_overlay.9 secmodel_securelevel.9 \
secmodel_suser.9 setbit.9 setjmp.9 shutdownhook_establish.9 \
signal.9 sockopt.9 softintr.9 spl.9 splraiseipl.9 \

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sched_4bsd.9,v 1.4 2010/03/05 23:08:18 dsieger Exp $
.\" $NetBSD: sched_4bsd.9,v 1.5 2010/03/06 16:42:56 dsieger Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -87,6 +87,7 @@ The 4.4BSD scheduler subsystem is implemented within the file
.Pa sys/kern/sched_4bsd.c .
.Sh SEE ALSO
.Xr csf 9 ,
.Xr sched_m2 ,
.Xr hardclock 9 ,
.Xr mi_switch 9 ,
.Xr userret 9

62
share/man/man9/sched_m2.9 Normal file
View File

@ -0,0 +1,62 @@
.\" $NetBSD: sched_m2.9,v 1.1 2010/03/06 16:42:56 dsieger Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
.\" by Daniel Sieger.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd March 5, 2010
.Dt SCHED_M2 9
.Os
.Sh NAME
.Nm sched_m2
.Nd The M2 thread scheduler
.Sh SYNOPSIS
.In sys/sched.h
.Sh DESCRIPTION
The M2 scheduler implements a scheduling algortithm similar to
the scheduler implementaions of UNIX System V Release 4 and Solaris.
.Sh CODE REFERENCES
This section describes places within the
.Nx
source tree where actual code implementing the scheduler can be found.
All pathnames are relative to
.Pa /usr/src .
.Pp
The M2 scheduler is implemented within the file
.Pa sys/kern/sched_m2.c .
.Sh SEE ALSO
.Xr csf 9 ,
.Xr sched_4bsd 9 ,
.Xr hardclock 9 ,
.Xr mi_switch 9 ,
.Xr userret 9
.Rs
.%A Berny Goodheart
.%A James Cox
.%B "The Magic Garden Explained: The Internals of UNIX System V Release 4"
.%I "Prentice Hall"
.%D 1994
.Re