Subject: kern/32506: fdalloc() and friends did not make it through ktrace-lwp merge
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ola@mreriksson.net>
List: netbsd-bugs
Date: 01/12/2006 12:05:00
>Number:         32506
>Category:       kern
>Synopsis:       fdalloc() and friends did not make it through ktrace-lwp merge
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 12 12:05:00 +0000 2006
>Originator:     Ola Eriksson
>Release:        NetBSD 3.99.15
>Organization:
GMQ Consulting
>Environment:
NetBSD herbert 3.99.15 NetBSD 3.99.15 (herbert) #0: Sat Jan  7 02:32:20 CET 2006  root@herbert:/usr/obj/sys/arch/i386/compile/herbert i386
>Description:
It seems that when the ktrace-lwp branch was merged with HEAD, the manpages for fdalloc() and friends was updated to indicate that 'struct lwp' is now used instead of 'struct proc'. However, the sources are not updated to match these changes. This complicates, among other things, the adaption of the lkm from pkgsrc/net/arla to the kernel sources post 3.99.14.
>How-To-Repeat:
Compare output from:

# grep fdalloc /usr/include/sys/filedescr.h

and

# man fdalloc

>Fix:
Either adapt fdalloc() and friends to use 'struct lwp' instead of 'struct proc' or change man-pages back to indicating that struct proc should be used.