Subject: kern/21602: preempt(9) is wrong
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kristerw@netbsd.org>
List: netbsd-bugs
Date: 05/16/2003 23:42:44
>Number:         21602
>Category:       kern
>Synopsis:       preempt(9) is wrong
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 16 23:43:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Krister Walfridsson
>Release:        NetBSD 1.6S as of 2003-05-16
>Organization:
	
>Environment:
>Description:
preempt(9) describes an old version of the function, with a (to my
limited understanding) rather different functionality from the current
one.  Note that the comment before the function definition (in
sys/kern/kern_synch.c) is wrong too.

>How-To-Repeat:
   man 9 preempt

and notice that it says 

    void
    preempt(struct proc *p);

where the source says

    void
    preempt(int more)
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: