>Synopsis:      getnewvnode(9) man page is wrong, it describes an out-of-date 
>version of prototype
>Category:      documentation
>Environment:
        System      : OpenBSD 5.1
        Details     : OpenBSD 5.1-current (GENERIC) #185: Thu Apr 26 03:49:04 
MDT 2012
                         
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC

        Architecture: OpenBSD.macppc
        Machine     : macppc
>Description:
The getnewvnode(9) man page claims the relevant prototype is:

    int
    getnewvnode(enum vtagtype tag, struct mount *mp, int (**vops)((void *)),
    struct vnode **vpp);

but looking at the <sys/vnode.h> header the prototype has changed to:

    int 
    getnewvnode(enum vtagtype, struct mount *, struct vops *,
    struct vnode **);

The third parameter is no longer a pointer to a function pointer. This parameter
changed at revision 1.105 but the man page must not have been updated.

>How-To-Repeat:
man getnewvnode
>Fix:
Update or delete the getnewvnode(9) man page.

dmesg:
OpenBSD 5.1-current (GENERIC) #185: Thu Apr 26 03:49:04 MDT 2012
    dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1032175616 (984MB)
mainbus0 at root: model PowerMac6,4
cpu0 at mainbus0: 7447A (Revision 0x102): 1416 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: 512MB DDR SDRAM non-parity PC3200CL3.0
spdmem1 at mem0: 512MB DDR SDRAM non-parity PC3200CL3.0
memc0 at mainbus0: uni-n
"hw-clock" at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00
vgafb0 at pci0 dev 16 function 0 "ATI Radeon 9600 Pro" rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x5
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple UniNorth PCI" rev 0x00
bwi0 at pci1 dev 18 function 0 "Broadcom BCM4306" rev 0x03: irq 52, address 
00:11:24:99:dc:d3
macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
"modem-reset" at macgpio0 offset 0x1d not configured
"modem-power" at macgpio0 offset 0x1c not configured
macgpio1 at macgpio0 offset 0x9 irq 47
"programmer-switch" at macgpio0 offset 0x11 not configured
"fan" at macgpio0 offset 0x0 not configured
"gpio0" at macgpio0 offset 0x6a not configured
"gpio5" at macgpio0 offset 0x6f not configured
"gpio6" at macgpio0 offset 0x70 not configured
"extint-gpio4" at macgpio0 offset 0x5c not configured
"gpio11" at macgpio0 offset 0x75 not configured
"extint-gpio15" at macgpio0 offset 0x67 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at macobio0 offset 0x10000: irq 30,1,2
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 0 targets
apm0 at adb0: battery flags 0x9, 0% charged
piic0 at adb0
iic1 at piic0
"ivad-2" at iic1 addr 0x146 not configured
"ivad-eeprom" at iic1 addr 0x153 not configured
"ivad-pwm" at iic1 addr 0x14c not configured
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
wdc0 at macobio0 offset 0x20000 irq 24: DMA
atapiscsi0 at wdc0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-RW DVR-127D, B912> ATAPI 5/cdrom 
removable
cd0(wdc0:0:0): using BIOS timings, DMA mode 2
audio0 at snapper0
ohci0 at pci1 dev 24 function 0 "Apple Intrepid USB" rev 0x00: couldn't map 
interrupt
ohci1 at pci1 dev 25 function 0 "Apple Intrepid USB" rev 0x00: couldn't map 
interrupt
ohci2 at pci1 dev 26 function 0 "Apple Intrepid USB" rev 0x00: irq 29, version 
1.0, legacy support
ohci3 at pci1 dev 27 function 0 "NEC USB" rev 0x43: irq 63, version 1.0
ohci4 at pci1 dev 27 function 1 "NEC USB" rev 0x43: irq 63, version 1.0
ehci0 at pci1 dev 27 function 2 "NEC USB" rev 0x04: irq 63
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1
usb1 at ohci2: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci3: USB revision 1.0
uhub2 at usb2 "NEC OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci4: USB revision 1.0
uhub3 at usb3 "NEC OHCI root hub" rev 1.00/1.00 addr 1
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x6
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple UniNorth PCI" rev 0x00
kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid ATA" rev 0x00
wdc1 at kauaiata0 irq 39: DMA
wd0 at wdc1 channel 0 drive 0: <WDC WD1600JB-40GVC0>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
"Apple UniNorth Firewire" rev 0x81 at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0 "Apple Uni-N2 GMAC" rev 0x80: irq 41, address 
00:11:24:88:32:96
bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Apple Computer HID-proxy" 
rev 1.10/12.41 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1 "Apple Computer HID-proxy" 
rev 1.10/12.41 addr 2
uhidev1: iclass 3/1
ums0 at uhidev1: 5 buttons
wsmouse0 at ums0 mux 0
uhub4 at uhub2 port 2 "Mitsumi Electric Hub in Apple Extended USB Keyboard" rev 
1.10/1.22 addr 2
uhidev2 at uhub4 port 1 configuration 1 interface 0 "Mitsumi Electric Apple 
Extended USB Keyboard" rev 1.10/1.22 addr 3
uhidev2: iclass 3/1
ukbd1 at uhidev2: 8 modifier keys, 6 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev3 at uhub4 port 1 configuration 1 interface 1 "Mitsumi Electric Apple 
Extended USB Keyboard" rev 1.10/1.22 addr 3
uhidev3: iclass 3/0, 3 report ids
uhid0 at uhidev3 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev3 reportid 3: input=3, output=0, feature=0
uhidev4 at uhub4 port 2 configuration 1 interface 0 "Logitech Apple Optical USB 
Mouse" rev 1.10/26.54 addr 4
uhidev4: iclass 3/1
ums1 at uhidev4: 1 button
wsmouse1 at ums1 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@f4000000/ata-6@d/disk@0:/bsd
root on wd0a (5f0733cb4968005b.a) swap on wd0b dump on wd0b
wsmouse1 detached
ums1 detached
uhidev4 detached

usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), NEC(0x1033), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), 
Apple(0x106b), rev 1.00
 port 1 addr 2: full speed, self powered, config 1, HID-proxy(0x1000), Apple 
Computer(0x05ac), rev 12.41
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NEC(0x1033), 
rev 1.00
 port 1 powered
 port 2 addr 2: full speed, power 50 mA, config 1, Hub in Apple Extended USB 
Keyboard(0x1002), Mitsumi Electric(0x05ac), rev 1.22
  port 1 addr 3: full speed, power 50 mA, config 1, Apple Extended USB 
Keyboard(0x0204), Mitsumi Electric(0x05ac), rev 1.22
  port 2 addr 4: low speed, power 100 mA, config 1, Apple Optical USB 
Mouse(0x0306), Logitech(0x05ac), rev 26.54
  port 3 powered
 port 3 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NEC(0x1033), 
rev 1.00
 port 1 powered
 port 2 powered

Reply via email to