Module Name:    src
Committed By:   tls
Date:           Sun Aug 10 06:53:26 UTC 2014

Modified Files:
        src/share/man/man3 [tls-earlyentropy]: attribute.3 queue.3
        src/share/man/man4 [tls-earlyentropy]: Makefile acpi.4 athn.4 bpf.4
            ddb.4 lua.4 netintro.4 options.4 ubsec.4 ucom.4 uhso.4 uplcom.4
            urtwn.4 wm.4
        src/share/man/man4/man4.evbarm [tls-earlyentropy]: Makefile
        src/share/man/man4/man4.x86 [tls-earlyentropy]: Makefile
        src/share/man/man7 [tls-earlyentropy]: signal.7 sysctl.7 tests.atf.7
            tests.kyua.7
        src/share/man/man8 [tls-earlyentropy]: wizd.8
        src/share/man/man9 [tls-earlyentropy]: Makefile audio.9 callout.9
            cardbus.9 malloc.9 namei.9 pcu.9 uvm_km.9 uvm_map.9 vfssubr.9
            vnodeops.9
Added Files:
        src/share/man/man4 [tls-earlyentropy]: asus.4 bpfjit.4 hythygtemp.4
            mcp23s17gpio.4
        src/share/man/man4/man4.evbarm [tls-earlyentropy]: bcmgpio.4
        src/share/man/man4/man4.x86 [tls-earlyentropy]: vmx.4
        src/share/man/man9 [tls-earlyentropy]: ipi.9

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.15.2.1 src/share/man/man3/attribute.3
cvs rdiff -u -r1.47 -r1.47.2.1 src/share/man/man3/queue.3
cvs rdiff -u -r1.611 -r1.611.2.1 src/share/man/man4/Makefile
cvs rdiff -u -r1.75 -r1.75.8.1 src/share/man/man4/acpi.4
cvs rdiff -u -r0 -r1.3.2.2 src/share/man/man4/asus.4
cvs rdiff -u -r1.6 -r1.6.2.1 src/share/man/man4/athn.4
cvs rdiff -u -r1.53 -r1.53.2.1 src/share/man/man4/bpf.4
cvs rdiff -u -r0 -r1.2.2.2 src/share/man/man4/bpfjit.4 \
    src/share/man/man4/hythygtemp.4
cvs rdiff -u -r1.155 -r1.155.2.1 src/share/man/man4/ddb.4
cvs rdiff -u -r1.3 -r1.3.2.1 src/share/man/man4/lua.4
cvs rdiff -u -r0 -r1.2.4.2 src/share/man/man4/mcp23s17gpio.4
cvs rdiff -u -r1.27 -r1.27.2.1 src/share/man/man4/netintro.4
cvs rdiff -u -r1.437 -r1.437.2.1 src/share/man/man4/options.4
cvs rdiff -u -r1.4 -r1.4.72.1 src/share/man/man4/ubsec.4
cvs rdiff -u -r1.22 -r1.22.2.1 src/share/man/man4/ucom.4
cvs rdiff -u -r1.3 -r1.3.18.1 src/share/man/man4/uhso.4
cvs rdiff -u -r1.18 -r1.18.40.1 src/share/man/man4/uplcom.4
cvs rdiff -u -r1.10 -r1.10.2.1 src/share/man/man4/urtwn.4
cvs rdiff -u -r1.29 -r1.29.2.1 src/share/man/man4/wm.4
cvs rdiff -u -r1.5 -r1.5.6.1 src/share/man/man4/man4.evbarm/Makefile
cvs rdiff -u -r0 -r1.1.4.2 src/share/man/man4/man4.evbarm/bcmgpio.4
cvs rdiff -u -r1.14 -r1.14.4.1 src/share/man/man4/man4.x86/Makefile
cvs rdiff -u -r0 -r1.2.2.2 src/share/man/man4/man4.x86/vmx.4
cvs rdiff -u -r1.16 -r1.16.22.1 src/share/man/man7/signal.7
cvs rdiff -u -r1.79 -r1.79.2.1 src/share/man/man7/sysctl.7
cvs rdiff -u -r1.3 -r1.3.2.1 src/share/man/man7/tests.atf.7 \
    src/share/man/man7/tests.kyua.7
cvs rdiff -u -r1.6 -r1.6.38.1 src/share/man/man8/wizd.8
cvs rdiff -u -r1.377 -r1.377.2.1 src/share/man/man9/Makefile
cvs rdiff -u -r1.43 -r1.43.16.1 src/share/man/man9/audio.9
cvs rdiff -u -r1.26 -r1.26.6.1 src/share/man/man9/callout.9
cvs rdiff -u -r1.18 -r1.18.2.1 src/share/man/man9/cardbus.9
cvs rdiff -u -r0 -r1.2.2.2 src/share/man/man9/ipi.9
cvs rdiff -u -r1.47 -r1.47.24.1 src/share/man/man9/malloc.9
cvs rdiff -u -r1.31 -r1.31.4.1 src/share/man/man9/namei.9
cvs rdiff -u -r1.4 -r1.4.2.1 src/share/man/man9/pcu.9
cvs rdiff -u -r1.2 -r1.2.18.1 src/share/man/man9/uvm_km.9 \
    src/share/man/man9/uvm_map.9
cvs rdiff -u -r1.23 -r1.23.2.1 src/share/man/man9/vfssubr.9
cvs rdiff -u -r1.93 -r1.93.2.1 src/share/man/man9/vnodeops.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.15 src/share/man/man3/attribute.3:1.15.2.1
--- src/share/man/man3/attribute.3:1.15	Fri Oct 25 22:19:41 2013
+++ src/share/man/man3/attribute.3	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: attribute.3,v 1.15 2013/10/25 22:19:41 wiz Exp $
+.\" $NetBSD: attribute.3,v 1.15.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -344,7 +344,7 @@ Semantically
 .Ic __predict_true
 expects that the integral expression
 .Fa exp
-equals 1.
+yields nonzero.
 .It Ic __predict_false
 The
 .Ic __predict_false

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.47 src/share/man/man3/queue.3:1.47.2.1
--- src/share/man/man3/queue.3:1.47	Thu Nov 28 16:45:36 2013
+++ src/share/man/man3/queue.3	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.47 2013/11/28 16:45:36 wiz Exp $
+.\"	$NetBSD: queue.3,v 1.47.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -53,7 +53,7 @@
 .\"
 .\"	@(#)queue.3	8.1 (Berkeley) 12/13/93
 .\"
-.Dd November 27, 2013
+.Dd May 17, 2014
 .Dt QUEUE 3
 .Os
 .Sh NAME
@@ -85,6 +85,7 @@
 .Nm LIST_INSERT_HEAD ,
 .Nm LIST_REMOVE ,
 .Nm LIST_REPLACE ,
+.Nm LIST_MOVE ,
 .Nm SIMPLEQ_HEAD ,
 .Nm SIMPLEQ_HEAD_INITIALIZER ,
 .Nm SIMPLEQ_ENTRY ,
@@ -138,7 +139,7 @@
 .Nm STAILQ_REMOVE_HEAD ,
 .Nm STAILQ_REMOVE ,
 .Nm STAILQ_CONCAT ,
-.Nd implementations of singly-linked lists, lists, simple queues, tail queues, and singly-linked tail queues.
+.Nd implementations of singly-linked lists, lists, simple queues, tail queues, and singly-linked tail queues
 .Sh SYNOPSIS
 .In sys/queue.h
 .Pp
@@ -176,6 +177,7 @@
 .Fn LIST_INSERT_HEAD "LIST_HEAD *head" "TYPE *elm" "LIST_ENTRY NAME"
 .Fn LIST_REMOVE "TYPE *elm" "LIST_ENTRY NAME"
 .Fn LIST_REPLACE "TYPE *elm" "TYPE *new" "LIST_ENTRY NAME"
+.Fn LIST_MOVE "LIST_HEAD *head1" "LIST_HEAD *head2"
 .Pp
 .Fn SIMPLEQ_HEAD "HEADNAME" "TYPE"
 .Fn SIMPLEQ_HEAD_INITIALIZER "head"
@@ -375,8 +377,8 @@ of data structure.
 .Pp
 .TS
 box tab(:);
-l | c | c | c | c | c 
-l | c | c | c | c | c 
+l | c | c | c | c | c
+l | c | c | c | c | c
 l | c | c | c | c | c
 l | c | c | c | c | c
 l | c | c | c | c | c
@@ -661,6 +663,14 @@ replaces the element
 with
 .Fa new
 in the list.
+.Pp
+The macro
+.Nm LIST_MOVE
+moves the list headed by
+.Fa head1
+onto the list headed by
+.Fa head2 ,
+always making the former empty.
 .Sh LIST EXAMPLE
 .Bd -literal
 LIST_HEAD(listhead, entry) head;

Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.611 src/share/man/man4/Makefile:1.611.2.1
--- src/share/man/man4/Makefile:1.611	Wed Mar 19 15:26:41 2014
+++ src/share/man/man4/Makefile	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.611 2014/03/19 15:26:41 nonaka Exp $
+#	$NetBSD: Makefile,v 1.611.2.1 2014/08/10 06:53:25 tls Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/18/93
 
 MAN=	aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -6,13 +6,13 @@ MAN=	aac.4 ac97.4 acardide.4 aceride.4 a
 	adc.4 admtemp.4 adv.4 adw.4 age.4 agp.4 agr.4 ahb.4 ahc.4 \
 	ahcisata.4 ahd.4 \
 	aibs.4 alc.4 ale.4 alipm.4 altmem.4 altq.4 amdpm.4 amdtemp.4 amhphy.4 \
-	amr.4 aps.4 \
+	amr.4 aps.4 asus.4 \
 	an.4 arcmsr.4 aria.4 artsata.4 ata.4 atalk.4 ataraid.4 \
 	ath.4 athn.4 atphy.4 atppc.4 attimer.4 atw.4 \
 	auacer.4 audio.4 audiocs.4 auich.4 \
 	auixp.4 autri.4 auvia.4 awi.4 azalia.4 \
 	battery_pmu.4 bba.4 bce.4 bcsp.4 be.4 bge.4 bnx.4 bha.4 \
-	bio.4 bktr.4 bluetooth.4 bmtphy.4 bpf.4 \
+	bio.4 bktr.4 bluetooth.4 bmtphy.4 bpf.4 bpfjit.4 \
 	brgphy.4 bridge.4 bthidev.4 bthub.4 btkbd.4 \
 	btmagic.4 btms.4 btsco.4 btuart.4 \
 	bwi.4 \
@@ -28,7 +28,7 @@ MAN=	aac.4 ac97.4 acardide.4 aceride.4 a
 	gcscaudio.4 gem.4 genfb.4 gentbi.4 geodeide.4 \
 	glxtphy.4 gpib.4 gpio.4 gpiolock.4 gpiopwm.4 gpiosim.4 gre.4 \
 	gphyter.4 gsip.4 \
-	hdaudio.4 hifn.4 hme.4 hpacel.4 hpqlb.4 hptide.4 \
+	hdaudio.4 hifn.4 hme.4 hpacel.4 hpqlb.4 hptide.4 hythygtemp.4 \
 	ibmcd.4 ibmhawk.4 ichsmb.4 icmp.4 icp.4 icsphy.4 iee.4 ieee80211.4 \
 	ifmedia.4 igmafb.4 igphy.4 igsfb.4 iha.4 ihphy.4 iic.4 inet.4 ikphy.4 \
 	inphy.4 intersil7170.4 \
@@ -37,7 +37,8 @@ MAN=	aac.4 ac97.4 acardide.4 aceride.4 a
 	jme.4 jmide.4 joy.4 \
 	kloader.4 kse.4 ksyms.4 kttcp.4 \
 	lc.4 ld.4 lii.4 lo.4 lua.4 lxtphy.4 \
-	mainbus.4 makphy.4 malo.4 mbe.4 mca.4 mcclock.4 md.4 mfb.4 mfi.4 mhzc.4 \
+	mainbus.4 makphy.4 malo.4 mbe.4 mca.4 mcclock.4 md.4 mfb.4 \
+	mfi.4 mhzc.4 \
 	micphy.4 midi.4 mii.4 mk48txx.4 mlx.4 mly.4 mpls.4 mpii.4 mpt.4 mpu.4 mtd.4 \
 	mtio.4 msm6242b.4 multicast.4 mvsata.4 \
 	nadb.4 ne.4 neo.4 netintro.4 nfe.4 nfsmb.4 njata.4 njs.4 \
@@ -125,7 +126,7 @@ MAN+=	dbcool.4 g760a.4 lmenv.4 lmtemp.4 
 	smscmon.4 spdmem.4 tps65217pmic.4
 
 # machine-independent SPI devices
-MAN +=	m25p.4 tm121temp.4
+MAN +=	m25p.4 mcp23s17gpio.4 tm121temp.4
 
 # machine-independent SD/MMC devices
 MAN +=	sbt.4 sdhc.4 sdmmc.4

Index: src/share/man/man4/acpi.4
diff -u src/share/man/man4/acpi.4:1.75 src/share/man/man4/acpi.4:1.75.8.1
--- src/share/man/man4/acpi.4:1.75	Tue Apr 10 13:48:24 2012
+++ src/share/man/man4/acpi.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: acpi.4,v 1.75 2012/04/10 13:48:24 jruoho Exp $
+.\" $NetBSD: acpi.4,v 1.75.8.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2002, 2004, 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd April 10, 2012
+.Dd July 13, 2014
 .Dt ACPI 4
 .Os
 .Sh NAME
@@ -266,7 +266,7 @@ support for Windows Management Instrumen
 watchdogs.
 .It Xr aibs 4
 ASUSTeK voltage, temperature and fan sensors.
-.It asus
+.It Xr asus 4
 ASUS laptop hotkeys.
 .It Xr attimer 4
 AT Timer.

Index: src/share/man/man4/athn.4
diff -u src/share/man/man4/athn.4:1.6 src/share/man/man4/athn.4:1.6.2.1
--- src/share/man/man4/athn.4:1.6	Wed Jul 31 13:34:04 2013
+++ src/share/man/man4/athn.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: athn.4,v 1.6 2013/07/31 13:34:04 soren Exp $
+.\" $NetBSD: athn.4,v 1.6.2.1 2014/08/10 06:53:25 tls Exp $
 .\" $OpenBSD: athn.4,v 1.21 2012/09/17 11:04:24 sthen Exp $
 .\"
 .\" Copyright (c) 2009 Damien Bergamini <damien.bergam...@free.fr>.
@@ -166,9 +166,9 @@ For USB devices, the driver needs at lea
 firmware files, which are loaded when an interface is attached:
 .Pp
 .Bl -tag -width Ds -offset indent -compact
-.It /etc/firmware/athn-ar7010
-.It /etc/firmware/athn-ar7010-11
-.It /etc/firmware/athn-ar9271
+.It /libdata/firmware/athn-ar7010
+.It /libdata/firmware/athn-ar7010-11
+.It /libdata/firmware/athn-ar9271
 .El
 .\".Pp
 .\"A prepackaged version of the firmware can be installed using

Index: src/share/man/man4/bpf.4
diff -u src/share/man/man4/bpf.4:1.53 src/share/man/man4/bpf.4:1.53.2.1
--- src/share/man/man4/bpf.4:1.53	Thu Aug 29 20:02:35 2013
+++ src/share/man/man4/bpf.4	Sun Aug 10 06:53:25 2014
@@ -1,6 +1,6 @@
 .\" -*- nroff -*-
 .\"
-.\"	$NetBSD: bpf.4,v 1.53 2013/08/29 20:02:35 wiz Exp $
+.\"	$NetBSD: bpf.4,v 1.53.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1992, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -24,7 +24,7 @@
 .\" This document is derived in part from the enet man page (enet.4)
 .\" distributed with 4.3BSD Unix.
 .\"
-.Dd August 29, 2013
+.Dd July 24, 2014
 .Dt BPF 4
 .Os
 .Sh NAME
@@ -682,7 +682,7 @@ support, the additional sysctl is availa
 .Bl -tag -width "XnetXbpfXjitXX"
 .It Li net.bpf.jit
 Toggle
-.Nm Just-In-Time
+.Sy Just-In-Time
 compilation of new filter programs.
 In order to enable Just-In-Time compilation,
 the bpfjit kernel module must be loaded.
@@ -752,6 +752,7 @@ struct bpf_insn insns[] = {
 .Xr read 2 ,
 .Xr select 2 ,
 .Xr signal 3 ,
+.Xr bpfjit 4 ,
 .Xr tcpdump 8
 .Rs
 .%T "The BSD Packet Filter: A New Architecture for User-level Packet Capture"
@@ -768,9 +769,11 @@ its development from 1983 on.
 Since then, it has evolved into the ULTRIX Packet Filter
 at DEC, a STREAMS NIT module under SunOS 4.1, and BPF.
 .Sh AUTHORS
-Steven McCanne, of Lawrence Berkeley Laboratory, implemented BPF in
-Summer 1990.
-The design was in collaboration with Van Jacobson,
+.An -nosplit
+.An Steven McCanne ,
+of Lawrence Berkeley Laboratory, implemented BPF in Summer 1990.
+The design was in collaboration with
+.An Van Jacobson ,
 also of Lawrence Berkeley Laboratory.
 .Sh BUGS
 The read buffer must be of a fixed size (returned by the

Index: src/share/man/man4/ddb.4
diff -u src/share/man/man4/ddb.4:1.155 src/share/man/man4/ddb.4:1.155.2.1
--- src/share/man/man4/ddb.4:1.155	Mon Feb 24 07:23:40 2014
+++ src/share/man/man4/ddb.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ddb.4,v 1.155 2014/02/24 07:23:40 skrll Exp $
+.\"	$NetBSD: ddb.4,v 1.155.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1997 - 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -56,7 +56,7 @@
 .\" any improvements or extensions that they make and grant Carnegie Mellon
 .\" the rights to redistribute these changes.
 .\"
-.Dd May 15, 2013
+.Dd June 12, 2014
 .Dt DDB 4
 .Os
 .Sh NAME
@@ -657,14 +657,6 @@ Display information about a lock at
 .Ar address .
 This command is useful only if a kernel is compiled with
 .Cd options LOCKDEBUG .
-.It Ic show malloc Ar address
-If
-.Ar address
-is supplied, display the kernel memory allocator's idea on the
-allocation status for it.
-Also, print out global statistics for the memory allocator.
-This command is useful only if a kernel is compiled with
-.Cd options MALLOC_DEBUG .
 .It Ic show map Ns Oo Cm /f Oc Ar address
 Print the vm_map at
 .Ar address .

Index: src/share/man/man4/lua.4
diff -u src/share/man/man4/lua.4:1.3 src/share/man/man4/lua.4:1.3.2.1
--- src/share/man/man4/lua.4:1.3	Wed Nov  6 17:54:55 2013
+++ src/share/man/man4/lua.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: lua.4,v 1.3 2013/11/06 17:54:55 njoly Exp $
+.\" $NetBSD: lua.4,v 1.3.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2013 Marc Balmer <m...@msys.ch>
 .\"
@@ -14,7 +14,7 @@
 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd October 24, 2013
+.Dd July 25, 2014
 .Dt LUA 4
 .Os
 .Sh NAME
@@ -191,3 +191,8 @@ The
 .Nm
 driver was written by
 .An Marc Balmer Aq Mt mbal...@netbsd.org .
+.Sh CAVEATS
+The
+.Nm
+device is experimental.
+Incompatible changes might be made in the future.

Index: src/share/man/man4/netintro.4
diff -u src/share/man/man4/netintro.4:1.27 src/share/man/man4/netintro.4:1.27.2.1
--- src/share/man/man4/netintro.4:1.27	Sun Oct  6 08:27:00 2013
+++ src/share/man/man4/netintro.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: netintro.4,v 1.27 2013/10/06 08:27:00 wiz Exp $
+.\"	$NetBSD: netintro.4,v 1.27.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1983, 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)netintro.4	8.2 (Berkeley) 11/30/93
 .\"
-.Dd October 5, 2013
+.Dd July 13, 2014
 .Dt NETINTRO 4
 .Os
 .Sh NAME
@@ -285,6 +285,12 @@ multiple masks or destination addresses,
 convention that specification of the default address means
 to delete the first address for the interface belonging to
 the address family in which the original socket was opened.
+.It Dv SIOCGIFALIAS
+This request provides means to get additional addresses together
+with netmask and broadcast/destination from an interface.
+It also uses the
+.Ar ifaliasreq
+structure.
 .El
 .Pp
 Request making use of the

Index: src/share/man/man4/options.4
diff -u src/share/man/man4/options.4:1.437 src/share/man/man4/options.4:1.437.2.1
--- src/share/man/man4/options.4:1.437	Sun Mar 23 00:50:20 2014
+++ src/share/man/man4/options.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: options.4,v 1.437 2014/03/23 00:50:20 dholland Exp $
+.\"	$NetBSD: options.4,v 1.437.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1996
 .\" 	Perry E. Metzger.  All rights reserved.
@@ -30,7 +30,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\"
-.Dd March 22, 2014
+.Dd July 23, 2014
 .Dt OPTIONS 4
 .Os
 .Sh NAME
@@ -604,11 +604,18 @@ Note that many parts of the kernel (typi
 conditionals instead.
 This option also turns on certain other options,
 which may decrease system performance.
+Systems with this option are not suitable for regular use, and are
+intended only for debugging or looking for bugs.
 .It Cd options DIAGNOSTIC
 Adds code to the kernel that does internal consistency checks.
 This code will cause the kernel to panic if corruption of internal data
 structures is detected.
-These checks can decrease performance up to 15%.
+Historically, the performance degradation is sufficiently small that
+it is reasonable for systems with
+.Em options DIAGNOSTIC
+to be in production use, with the real consideration not being
+performance but instead a preference for more panics versus continued
+operation with undetected problems.
 .It Cd options LOCKDEBUG
 Adds code to the kernel to detect incorrect use of locking primitives
 (mutex, rwlock).

Index: src/share/man/man4/ubsec.4
diff -u src/share/man/man4/ubsec.4:1.4 src/share/man/man4/ubsec.4:1.4.72.1
--- src/share/man/man4/ubsec.4:1.4	Thu Apr 29 19:42:29 2004
+++ src/share/man/man4/ubsec.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ubsec.4,v 1.4 2004/04/29 19:42:29 jonathan Exp $
+.\"	$NetBSD: ubsec.4,v 1.4.72.1 2014/08/10 06:53:25 tls Exp $
 .\"	$FreeBSD: src/share/man/man4/ubsec.4,v 1.1.2.1 2002/11/21 23:57:24 sam Exp $
 .\"	$OpenBSD: ubsec.4,v 1.26 2003/09/03 15:55:41 jason Exp $
 .\"
@@ -26,7 +26,7 @@
 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 10, 2000
+.Dd April 19, 2014
 .Dt UBSEC 4
 .Os
 .Sh NAME
@@ -43,9 +43,6 @@ driver supports cards containing any of 
 The original chipset, no longer made.
 This extremely rare unit
 was not very fast, lacked an RNG, and had a number of other bugs.
-.It Bluesteel 5601
-A faster and fixed version of the original, with a random number
-unit and large number engine added.
 .It Broadcom BCM5801
 A BCM5805 without public key engine or random number generator.
 .It Broadcom BCM5802
@@ -56,13 +53,19 @@ Faster version of Bluesteel 5601.
 64 bit version of the chip, and significantly more advanced.
 .It Broadcom BCM5821
 Faster version of the BCM5820.
-(This is the chip found on the Sun Crypto Accelerator 1000.)
+This is the chip found on the Sun Crypto Accelerator 1000.
 .It Broadcom BCM5822
 Faster version of the BCM5820.
 .It Broadcom BCM5823
-Faster version of the BCM5822.
-.It Broadcom BCM5823
-Faster version of the BCM5821, with AES hardware.
+Faster version of the BCM5822 that also supports AES.
+.It Broadcom BCM5825
+Faster PCI Express or PCI-X version of the chip.
+.It Broadcom BCM5860
+IPSec/SSL Security Processor that is faster and has more features.
+.It Broadcom BCM5861
+Faster version of the BCM5860.
+.It Broadcom BCM5862
+Faster version of the BCM5861.
 .El
 .Pp
 The
@@ -74,6 +77,7 @@ and thus for
 .Xr fast_ipsec 4
 and
 .Xr crypto 4 .
+The driver also supports acceleration of AES-CBC with the BCM5823 or newer.
 .Pp
 On those models which contain a public key engine (almost all of the
 more recent ones), this feature is registered with the
@@ -105,5 +109,3 @@ and subsequently imported to
 .Nx 2.0 .
 .Sh BUGS
 The BCM5801 and BCM5802 have not actually been tested.
-.Pp
-Whilst some of the newer chips support AES, AES is not supported by the driver.

Index: src/share/man/man4/ucom.4
diff -u src/share/man/man4/ucom.4:1.22 src/share/man/man4/ucom.4:1.22.2.1
--- src/share/man/man4/ucom.4:1.22	Sun Oct 13 09:48:14 2013
+++ src/share/man/man4/ucom.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: ucom.4,v 1.22 2013/10/13 09:48:14 mbalmer Exp $
+.\" $NetBSD: ucom.4,v 1.22.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd October 13, 2013
+.Dd July 25, 2014
 .Dt UCOM 4
 .Os
 .Sh NAME
@@ -35,6 +35,7 @@
 .Nd USB tty support
 .Sh SYNOPSIS
 .Cd "ucom* at u3g?"
+.Cd "ucom* at uark?"
 .Cd "ucom* at ubsa?"
 .Cd "ucom* at uchcom?"
 .Cd "ucom* at uftdi?"
@@ -42,6 +43,7 @@
 .Cd "ucom* at uhmodem?"
 .Cd "ucom* at uipaq?"
 .Cd "ucom* at ukyopon?"
+.Cd "ucom* at umcs? portno ?"
 .Cd "ucom* at umct?"
 .Cd "ucom* at umodem?"
 .Cd "ucom* at uplcom?"
@@ -67,6 +69,12 @@ The
 .Va portno
 locator can be used to decide which port to use for device that have
 multiple external ports.
+.Pp
+Note that while
+.Nm
+supports the (undocumented) pulse-per-second API normally used on
+conventional serial ports, USB serial devices typically have a varying
+latency around 1 ms due to the USB frame structure.
 .Sh FILES
 .Bl -tag -width Pa
 .It Pa /dev/dtyU?

Index: src/share/man/man4/uhso.4
diff -u src/share/man/man4/uhso.4:1.3 src/share/man/man4/uhso.4:1.3.18.1
--- src/share/man/man4/uhso.4:1.3	Fri Aug 26 07:56:00 2011
+++ src/share/man/man4/uhso.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: uhso.4,v 1.3 2011/08/26 07:56:00 plunky Exp $
+.\" $NetBSD: uhso.4,v 1.3.18.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2009 Iain Hibbert
 .\" All rights reserved.
@@ -23,7 +23,7 @@
 .\" (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 August 26, 2011
+.Dd July 19, 2014
 .Dt UHSO 4
 .Os
 .Sh NAME
@@ -42,6 +42,7 @@ driver supports at least the following a
 .It GlobeTrotter Express 40x
 .It GlobeTrotter Express HSUPA
 .It GlobeTrotter HSUPA
+.It GlobeTrotter HSUPA Modem
 .It GlobeTrotter Max HSDPA
 .It GlobeTrotter Module 382
 .It GlobeTrotter iCON 225

Index: src/share/man/man4/uplcom.4
diff -u src/share/man/man4/uplcom.4:1.18 src/share/man/man4/uplcom.4:1.18.40.1
--- src/share/man/man4/uplcom.4:1.18	Wed Apr 30 13:10:54 2008
+++ src/share/man/man4/uplcom.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: uplcom.4,v 1.18 2008/04/30 13:10:54 martin Exp $
+.\" $NetBSD: uplcom.4,v 1.18.40.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 14, 2007
+.Dd July 14, 2014
 .Dt UPLCOM 4
 .Os
 .Sh NAME
@@ -52,6 +52,7 @@ driver supports the following adapters:
 .It I/O DATA USB-RSAQ3
 .It I/O DATA USB-RSAQ5
 .It PLANEX USB RS-232 URS-03
+.It Sharp CE-175TU
 .It Sitecom CN-116 USB to serial
 .It Sony Ericsson DCU-10
 .It Sony Ericsson DCU-11

Index: src/share/man/man4/urtwn.4
diff -u src/share/man/man4/urtwn.4:1.10 src/share/man/man4/urtwn.4:1.10.2.1
--- src/share/man/man4/urtwn.4:1.10	Fri Feb 14 07:29:06 2014
+++ src/share/man/man4/urtwn.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: urtwn.4,v 1.10 2014/02/14 07:29:06 wiz Exp $
+.\" $NetBSD: urtwn.4,v 1.10.2.1 2014/08/10 06:53:25 tls Exp $
 .\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $
 .\"
 .\" Copyright (c) 2010 Damien Bergamini <damien.bergam...@free.fr>
@@ -15,23 +15,23 @@
 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd February 13, 2014
+.Dd July 25, 2014
 .Dt URTWN 4
 .Os
 .Sh NAME
 .Nm urtwn
-.Nd Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
+.Nd Realtek RTL8188CU/RTL8188EU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
 .Sh SYNOPSIS
 .Cd "urtwn* at uhub? port ?"
 .Sh DESCRIPTION
 The
 .Nm
 driver supports USB 2.0 wireless network devices based on Realtek
-RTL8188CUS, RTL8188CE-VAU, RTL8188RU, and RTL8192CU chipsets.
+RTL8188CUS, RTL8188CE-VAU, RTL8188EUS, RTL8188RU, and RTL8192CU chipsets.
 .Pp
-The RTL8188CUS is a highly integrated 802.11n adapter that combines
-a MAC, a 1T1R capable baseband and an RF in a single chip.
-It operates in the 2GHz spectrum only.
+The RTL8188CUS and RTL8188EUS are highly integrated 802.11n adapters that
+combine a MAC, a 1T1R capable baseband and an RF in a single chip.
+They operate in the 2GHz spectrum only.
 The RTL8188RU is a high-power variant of the RTL8188CUS.
 The RTL8188CE-VAU is a PCI Express Mini Card adapter that attaches
 to the USB interface.
@@ -93,6 +93,7 @@ The driver needs the following firmware 
 which are loaded when an interface is attached:
 .Pp
 .Bl -tag -width Ds -offset indent -compact
+.It /libdata/firmware/if_urtwn/rtl8188eufw.bin
 .It /libdata/firmware/if_urtwn/rtl8192cfw.bin
 .It /libdata/firmware/if_urtwn/rtl8192cfwU.bin
 .El
@@ -102,6 +103,7 @@ The following adapters should work:
 .Bl -tag -width Ds -offset indent -compact
 .It Airlink101 AWLL5088
 .It Aus. Linx AL-9604R1S
+.It ASUSTeK USB-N10 NANO
 .It B-Link BL-LW05-5R
 .It Belkin F7D1102 Surf Wireless Micro
 .It D-Link DWA-121
@@ -110,6 +112,7 @@ The following adapters should work:
 .It Digitus DN-7042
 .It Edimax EW-7811Un
 .It EDUP EP-N8508
+.It ELECOM WDC-150SU2M
 .It Full River FR-W100NUL
 .It Hercules Wireless N USB Pico HWNUp-150
 .It Netgear WNA1000A
@@ -121,6 +124,8 @@ The following adapters should work:
 .It Sitecom N300 USB (WLA-2102 v1)
 .It Sitecom WL-365
 .It Solwise NET-WL-UMD-606N
+.It TP-LINK TL-WN723N v3
+.It TP-LINK TL-WN725N v2
 .It TRENDnet TEW-648UBM
 .El
 .Sh EXAMPLES

Index: src/share/man/man4/wm.4
diff -u src/share/man/man4/wm.4:1.29 src/share/man/man4/wm.4:1.29.2.1
--- src/share/man/man4/wm.4:1.29	Sun Dec 29 21:28:41 2013
+++ src/share/man/man4/wm.4	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: wm.4,v 1.29 2013/12/29 21:28:41 msaitoh Exp $
+.\"	$NetBSD: wm.4,v 1.29.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright 2002, 2003 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -33,7 +33,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 30, 2013
+.Dd August 1, 2014
 .Dt WM 4
 .Os
 .Sh NAME
@@ -157,7 +157,7 @@ line of Gigabit Ethernet interfaces, the
 some server systems, processor evaluation boards, and in embedded
 systems.
 .Pp
-The i8254x supports IPv4/TCP/UDP checksumming and TCP segmentation
+The i825[478]x supports IPv4/TCP/UDP checksumming and TCP segmentation
 in hardware.
 The
 .Nm
@@ -185,5 +185,5 @@ The
 driver was written by
 .An Jason R. Thorpe Aq Mt thor...@wasabisystems.com .
 .Sh BUGS
-The Intel i82545GM and i82546GB controllers with internal SERDES are
+Some 82575 and newer controllers with internal SERDES are
 not currently supported.

Index: src/share/man/man4/man4.evbarm/Makefile
diff -u src/share/man/man4/man4.evbarm/Makefile:1.5 src/share/man/man4/man4.evbarm/Makefile:1.5.6.1
--- src/share/man/man4/man4.evbarm/Makefile:1.5	Sun Jan  6 18:30:10 2013
+++ src/share/man/man4/man4.evbarm/Makefile	Sun Aug 10 06:53:25 2014
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.5 2013/01/06 18:30:10 jakllsch Exp $
+#	$NetBSD: Makefile,v 1.5.6.1 2014/08/10 06:53:25 tls Exp $
 
-MAN=	cpsw.4 epgpio.4 intro.4 iopaau.4 iopwdog.4
+MAN=	bcmgpio.4 cpsw.4 epgpio.4 intro.4 iopaau.4 iopwdog.4
 
 MANSUBDIR=/evbarm
 

Index: src/share/man/man4/man4.x86/Makefile
diff -u src/share/man/man4/man4.x86/Makefile:1.14 src/share/man/man4/man4.x86/Makefile:1.14.4.1
--- src/share/man/man4/man4.x86/Makefile:1.14	Mon Jun 10 07:14:01 2013
+++ src/share/man/man4/man4.x86/Makefile	Sun Aug 10 06:53:25 2014
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.14 2013/06/10 07:14:01 kardel Exp $
+#	$NetBSD: Makefile,v 1.14.4.1 2014/08/10 06:53:25 tls Exp $
 
 MAN=	amdpcib.4 apic.4 balloon.4 coretemp.4 est.4 fdc.4 \
 	fwhrng.4 hpet.4 ichlpcib.4 lpt.4 mem.4 odcm.4 powernow.4 \
-	soekrisgpio.4 tprof_amdpmi.4 tprof_pmi.4 vmt.4
+	soekrisgpio.4 tprof_amdpmi.4 tprof_pmi.4 vmt.4 vmx.4
 
 MLINKS+=apic.4 ioapic.4 \
 	apic.4 lapic.4

Index: src/share/man/man7/signal.7
diff -u src/share/man/man7/signal.7:1.16 src/share/man/man7/signal.7:1.16.22.1
--- src/share/man/man7/signal.7:1.16	Wed Jan 19 04:33:13 2011
+++ src/share/man/man7/signal.7	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: signal.7,v 1.16 2011/01/19 04:33:13 uwe Exp $
+.\"	$NetBSD: signal.7,v 1.16.22.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 27, 2009
+.Dd July 18, 2014
 .Dt SIGNAL 7
 .Os
 .Sh NAME
@@ -148,6 +148,7 @@ below is unsafe to use in signal handler
 .Xr poll 2 ,
 .\" .Xr posix_trace_event 2
 .\" .Xr pselect 2
+.Xr pthread_mutex_unlock 3 ,
 .Xr raise 3 ,
 .Xr read 2 ,
 .Xr readlink 2 ,

Index: src/share/man/man7/sysctl.7
diff -u src/share/man/man7/sysctl.7:1.79 src/share/man/man7/sysctl.7:1.79.2.1
--- src/share/man/man7/sysctl.7:1.79	Mon Dec 16 00:59:37 2013
+++ src/share/man/man7/sysctl.7	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sysctl.7,v 1.79 2013/12/16 00:59:37 wiz Exp $
+.\"	$NetBSD: sysctl.7,v 1.79.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	@(#)sysctl.3	8.4 (Berkeley) 5/9/95
 .\"
-.Dd December 14, 2013
+.Dd August 3, 2014
 .Dt SYSCTL 7
 .Os
 .Sh NAME
@@ -198,6 +198,7 @@ privilege may change the value.
 .It hw.machine_arch	string	no
 .It hw.model	string	no
 .It hw.ncpu	integer	no
+.It hw.ncpuonline	integer	no
 .It hw.pagesize	integer	no
 .It hw.physmem	integer	no
 .It hw.physmem64	quad	no
@@ -249,7 +250,9 @@ The machine CPU class.
 .It Li hw.model ( HW_MODEL )
 The machine model.
 .It Li hw.ncpu ( HW_NCPU )
-The number of CPUs.
+The number of CPUs configured.
+.It Li hw.ncpuonline ( HW_NCPUONLINE )
+The number of CPUs online.
 .It Li hw.pagesize ( HW_PAGESIZE )
 The software page size.
 .It Li hw.physmem ( HW_PHYSMEM )
@@ -277,6 +280,7 @@ privilege may change the value.
 .It kern.argmax	integer	no
 .It kern.boothowto	integer	no
 .It kern.boottime	struct timeval	no
+.It kern.buildinfo	string	no
 .\".It kern.bufq	node	not applicable
 .It kern.ccpu	integer	no
 .It kern.clockrate	struct clockinfo	no
@@ -329,6 +333,7 @@ privilege may change the value.
 .It kern.ostype	string	no
 .\".It kern.panic_now	integer	yes
 .It kern.pipe	node	not applicable
+.It kern.pool	struct pool_sysctl	no
 .\" .It kern.posix	node	not applicable
 .It kern.posix1version	integer	no
 .It kern.posix_aio	integer	no
@@ -394,6 +399,9 @@ A
 .Vt struct timeval
 structure is returned.
 This structure contains the time that the system was booted.
+.It Li kern.buildinfo
+When the kernel is built, the build environment may optionally provide
+arbitrary information to be stored in this variable.
 .\" .It Li kern.bufq
 .\" XXX: Undocumented.
 .It Li kern.ccpu ( KERN_CCPU )
@@ -849,6 +857,12 @@ Number of
 .Dq big
 pipes.
 .El
+.It Li kern.pool
+Provides statistics about the
+.Xr pool 9
+and
+.Xr pool_cache 9
+subsystems.
 .\" XXX: Undocumented .It Li kern.posix ( ? )
 .\"	 This is a node in which the only variable is semmax.
 .It Li kern.posix1version ( KERN_POSIX1 )
@@ -1889,6 +1903,8 @@ The currently defined variable and names
 .Bl -column "blockacq_lifetime" "integer" "Changeable" -offset indent
 .It Sy Variable name	Type	Changeable
 .It debug	integer	yes
+.It enabled	integer	yes
+.It used	integer	no
 .It spi_try	integer	yes
 .It spi_min_value	integer	yes
 .It spi_max_value	integer	yes
@@ -1906,6 +1922,20 @@ The variables are as follows:
 Turn on debugging message from within the kernel.
 The value is a bitmap, as defined in
 .In netkey/key_debug.h .
+.It Li enabled
+Control processing of IPsec control messages.
+.Bl -tag -width indent
+.It 0
+Never allow IPsec processing
+.It 1
+Allow IPsec processing when SPD policies are present.
+.It 2
+Force IPsec processing even when SPD policies are not present.
+.El
+.It Li used
+Based on if IPsec is enabled, and SPD rule existance, show if
+IPsec is being used.
+Note that currenly once IPsec is being used, it cannot be disabled.
 .It Li spi_try
 The number of times the kernel will try to obtain an unique SPI
 when it generates it from random number generator.

Index: src/share/man/man7/tests.atf.7
diff -u src/share/man/man7/tests.atf.7:1.3 src/share/man/man7/tests.atf.7:1.3.2.1
--- src/share/man/man7/tests.atf.7:1.3	Tue Mar 18 18:20:40 2014
+++ src/share/man/man7/tests.atf.7	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: tests.atf.7,v 1.3 2014/03/18 18:20:40 riastradh Exp $
+.\"	$NetBSD: tests.atf.7,v 1.3.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -25,7 +25,7 @@
 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd August 5, 2011
+.Dd July 13, 2014
 .Dt TESTS 7
 .Os
 .Sh NAME
@@ -37,8 +37,8 @@ The
 test suite provides a collection of automated tests for two major purposes.
 On the one hand, the test suite aids
 .Em developers
-in catching bugs and regressions in the code when they performing modifications
-to the source tree.
+in catching bugs and regressions in the code when they are performing
+modifications to the source tree.
 On the other hand, the test suite allows
 .Em end users
 (and, in particular, system administrators) to verify that fresh installations
@@ -143,6 +143,21 @@ see
 .Xr atf-test-program 1
 for more details, but be aware that you should only be doing this if you are
 debugging failing tests.
+.Ss Test environment considerations
+Tests can be invoked as an unprivileged user, in which case tests that
+require privileges will be skipped.
+If run as root, an unprivileged user will be used for tests that
+require privileges.
+For maximal coverage, the standard approach is to invoke tests as root.
+.Pp
+Ideally, tests are self-contained and do not either depend on or
+perturb the host environment, aside from skipping tests when optional
+facilities are not available.
+In reality, tests load and unload modules, and do other things that
+might cause problems.
+While it is not entirely safe to run tests on a multi-user system,
+permanent problems or crashes from doing so are viewed as bugs and
+should be reported.
 .Ss Configuring the tests
 Some test cases in the
 .Nx
Index: src/share/man/man7/tests.kyua.7
diff -u src/share/man/man7/tests.kyua.7:1.3 src/share/man/man7/tests.kyua.7:1.3.2.1
--- src/share/man/man7/tests.kyua.7:1.3	Tue Mar 18 18:20:40 2014
+++ src/share/man/man7/tests.kyua.7	Sun Aug 10 06:53:25 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: tests.kyua.7,v 1.3 2014/03/18 18:20:40 riastradh Exp $
+.\"	$NetBSD: tests.kyua.7,v 1.3.2.1 2014/08/10 06:53:25 tls Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -25,7 +25,7 @@
 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 24, 2013
+.Dd June 2, 2014
 .Dt TESTS 7
 .Os
 .Sh NAME
@@ -138,6 +138,21 @@ $ kyua report-html --output ~/public_htm
 For further details on the command-line interface of Kyua, please refer
 to its manual page
 .Xr kyua 1 .
+.Ss Test environment considerations
+Tests can be invoked as an unprivileged user, in which case tests that
+require privileges will be skipped.
+If run as root, an unprivileged user will be used for tests that
+require privileges.
+For maximal coverage, the standard approach is to invoke tests as root.
+.Pp
+Ideally, tests are self-contained and do not either depend on or
+perturb the host environment, aside from skipping tests when optional
+facilities are not available.
+In reality, tests load and unload modules, and do other things that
+might cause problems.
+While it is not entirely safe to run tests on a multi-user system,
+permanent problems or crashes from doing so are viewed as bugs and
+should be reported.
 .Ss Configuring the tests
 Some test cases in the
 .Nx

Index: src/share/man/man8/wizd.8
diff -u src/share/man/man8/wizd.8:1.6 src/share/man/man8/wizd.8:1.6.38.1
--- src/share/man/man8/wizd.8:1.6	Wed Apr 30 13:10:57 2008
+++ src/share/man/man8/wizd.8	Sun Aug 10 06:53:25 2014
@@ -1,6 +1,6 @@
-.\"	$NetBSD: wizd.8,v 1.6 2008/04/30 13:10:57 martin Exp $
+.\"	$NetBSD: wizd.8,v 1.6.38.1 2014/08/10 06:53:25 tls Exp $
 .\"
-.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
+.\" Copyright (c) 2003, 2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
 .\"
 .\" Redistribution and use in source and binary forms, with or without
@@ -24,7 +24,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd April 1, 2003
+.Dd July 20, 2014
 .Dt WIZD 8
 .Os
 .Sh NAME
@@ -45,6 +45,11 @@ is invoked by any
 commit to a man page.
 A standalone mode is also available by sending mail to
 .Aq w...@netbsd.org .
+.Pp
+.Nm
+also performs periodic sanity checks on the distribution set lists.
+E-mail alerts will be triggered if the build installs files that are marked
+as obsolete and therefore get automatically removed.
 .Sh SEE ALSO
 .Xr cvs 1 ,
 .Xr intro 1 ,

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.377 src/share/man/man9/Makefile:1.377.2.1
--- src/share/man/man9/Makefile:1.377	Mon Mar 24 13:42:40 2014
+++ src/share/man/man9/Makefile	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-#       $NetBSD: Makefile,v 1.377 2014/03/24 13:42:40 hannken Exp $
+#       $NetBSD: Makefile,v 1.377.2.1 2014/08/10 06:53:26 tls Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -25,7 +25,7 @@ MAN=	accept_filter.9 accf_data.9 accf_ht
 	ieee80211_node.9 ieee80211_output.9 ieee80211_proto.9 \
 	ieee80211_radiotap.9 iic.9 imax.9 \
 	in_getifa.9 \
-	in4_cksum.9 inittodr.9 intro.9 ioasic.9 ioctl.9 ipkdb.9 isa.9 \
+	in4_cksum.9 inittodr.9 intro.9 ioasic.9 ioctl.9 ipkdb.9 ipi.9 isa.9 \
 	isapnp.9 itimerfix.9 kauth.9 kcopy.9 kcpuset.9 kmem.9 \
 	kpause.9 \
 	kfilter_register.9 knote.9 \

Index: src/share/man/man9/audio.9
diff -u src/share/man/man9/audio.9:1.43 src/share/man/man9/audio.9:1.43.16.1
--- src/share/man/man9/audio.9:1.43	Wed Nov 23 23:11:56 2011
+++ src/share/man/man9/audio.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: audio.9,v 1.43 2011/11/23 23:11:56 jmcneill Exp $
+.\"	$NetBSD: audio.9,v 1.43.16.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 23, 2011
+.Dd July 13, 2014
 .Dt AUDIO 9
 .Os
 .Sh NAME
@@ -207,7 +207,7 @@ support 8bit mu-law, but 16bit slinear_l
 .Dv pfil-\*[Gt]append()
 with
 .Va pfil ,
-.Va mulaw_to_slinear16 ,
+.Va mulaw_to_linear16 ,
 and audio_params_t representing [8000Hz, slinear_le, 16/16bit, 2ch].
 If the driver needs multiple conversions, a conversion nearest to the
 hardware should be set to the head of

Index: src/share/man/man9/callout.9
diff -u src/share/man/man9/callout.9:1.26 src/share/man/man9/callout.9:1.26.6.1
--- src/share/man/man9/callout.9:1.26	Sun Feb  3 08:19:58 2013
+++ src/share/man/man9/callout.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: callout.9,v 1.26 2013/02/03 08:19:58 jdc Exp $
+.\"	$NetBSD: callout.9,v 1.26.6.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 2000, 2003, 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -68,7 +68,7 @@
 .Fn "callout_active" "callout_t *c"
 .Ft bool
 .Fn "callout_invoking" "callout_t *c"
-.Ft bool
+.Ft void
 .Fn "callout_ack" "callout_t *c"
 .Sh DESCRIPTION
 The

Index: src/share/man/man9/cardbus.9
diff -u src/share/man/man9/cardbus.9:1.18 src/share/man/man9/cardbus.9:1.18.2.1
--- src/share/man/man9/cardbus.9:1.18	Mon Jan  6 14:57:10 2014
+++ src/share/man/man9/cardbus.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"     $NetBSD: cardbus.9,v 1.18 2014/01/06 14:57:10 njoly Exp $
+.\"     $NetBSD: cardbus.9,v 1.18.2.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd April 15, 2010
+.Dd July 13, 2014
 .Dt CARDBUS 9
 .Os
 .Sh NAME
@@ -309,13 +309,9 @@ The CardBus subsystem itself is implemen
 .Pa sys/dev/cardbus/cardbus_map.c
 and
 .Pa sys/dev/cardbus/cardslot.c .
-The database of known devices exists within the file
-.Pa sys/dev/cardbus/cardbus_data.h
-and is generated automatically from the file
-.Pa sys/dev/cardbus/cardbusdevs .
-New vendor and product identifiers should be added to this file.
-The database can be regenerated using the Makefile
-.Pa sys/dev/cardbus/Makefile.cardbusdevs .
+The database for PCI devices is also used for known CardBus devices.
+For more details see
+.Xr pci 9 .
 .Sh SEE ALSO
 .Xr cardbus 4 ,
 .Xr pcmcia 4 ,

Index: src/share/man/man9/malloc.9
diff -u src/share/man/man9/malloc.9:1.47 src/share/man/man9/malloc.9:1.47.24.1
--- src/share/man/man9/malloc.9:1.47	Mon Aug  3 19:57:40 2009
+++ src/share/man/man9/malloc.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: malloc.9,v 1.47 2009/08/03 19:57:40 rmind Exp $
+.\"	$NetBSD: malloc.9,v 1.47.24.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 1996, 2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 29, 2008
+.Dd May 27, 2014
 .Dt MALLOC 9
 .Os
 .Sh NAME
@@ -72,9 +72,9 @@
 These interfaces are being obsoleted and their new use is discouraged.
 For new code, use
 .Xr kmem 9
-or
+for variable-sized or one-time allocations and
 .Xr pool_cache 9
-instead.
+for frequent fixed-size allocations instead.
 .Ef
 .Pp
 The

Index: src/share/man/man9/namei.9
diff -u src/share/man/man9/namei.9:1.31 src/share/man/man9/namei.9:1.31.4.1
--- src/share/man/man9/namei.9:1.31	Tue Apr  9 13:29:07 2013
+++ src/share/man/man9/namei.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"     $NetBSD: namei.9,v 1.31 2013/04/09 13:29:07 njoly Exp $
+.\"     $NetBSD: namei.9,v 1.31.4.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -121,7 +121,7 @@ struct nameidata {
                  */
                 const char *cn_nameptr; /* pointer to looked up name */
                 size_t cn_namelen;      /* length of looked up component */
-                size_t cn_consume;      /* chars to consume in lookup() */
+                size_t cn_consume;      /* chars to be consumed this time */
         } ni_cnd;
 };
 .Ed

Index: src/share/man/man9/pcu.9
diff -u src/share/man/man9/pcu.9:1.4 src/share/man/man9/pcu.9:1.4.2.1
--- src/share/man/man9/pcu.9:1.4	Thu Jan 23 16:35:20 2014
+++ src/share/man/man9/pcu.9	Sun Aug 10 06:53:26 2014
@@ -1,6 +1,6 @@
-.\"	$NetBSD: pcu.9,v 1.4 2014/01/23 16:35:20 skrll Exp $
+.\"	$NetBSD: pcu.9,v 1.4.2.1 2014/08/10 06:53:26 tls Exp $
 .\"
-.\" Copyright (c) 2012 The NetBSD Foundation, Inc.
+.\" Copyright (c) 2012-2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
 .\"
 .\" This code is derived from software contributed to The NetBSD Foundation
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 22, 2014
+.Dd May 25, 2014
 .Dt PCU 9
 .Os
 .Sh NAME
@@ -42,14 +42,16 @@
 .Ft void
 .Fn pcu_save_all "lwp_t *l"
 .Ft void
-.Fn pcu_discard "const pcu_ops_t *pcu"
+.Fn pcu_discard "const pcu_ops_t *pcu" "bool valid"
+.Ft void
+.Fn pcu_discard_all "lwp_t *l"
 .Ft bool
-.Fn pcu_used_p "const pcu_ops_t *pcu"
+.Fn pcu_valid_p "const pcu_ops_t *pcu"
 .\" -----
 .Sh DESCRIPTION
 Per CPU Unit (PCU) is an interface to manage synchronization of any
 per-CPU context (unit) tied to an LWP context.
-Typical use of PCU is for "lazy-switch" synchronisation of FPU state.
+Typical use of PCU is for "lazy-switch" synchronization of the FPU state.
 Each PCU has its operations defined by a
 .Vt pcu_ops_t
 structure.
@@ -59,41 +61,62 @@ are
 .Bd -literal
         u_int	pcu_id;
         void	(*pcu_state_save)(lwp_t *l);
-        void	(*pcu_state_load)(lwp_t *l, bool used);
+        void	(*pcu_state_load)(lwp_t *l, u_int flags);
         void	(*pcu_state_release)(lwp_t *l);
 .Ed
 .Pp
-.Bl -tag -width compact
+.Bl -tag
 .It Fn pcu_state_save
-save the current CPU's state into the given LWP's MD storage.
+Indicate to MD code that the PCU state on the current CPU should be
+saved into the given LWP's MD storage.
 .It Fn pcu_state_load
-load PCU state from the given LWP's MD storage to the current CPU.
+Load PCU state from the given LWP's MD storage to the current CPU.
 The
-.Ar used
-argument is true if it is not the first time the LWP uses the PCU.
+.Ar flags
+argument is a combination of one or more of the following:
+.Bl -tag -width PCU_VALIDXXX
+.It Dv PCU_VALID
+Indicate that the PCU state is considered valid and need not be initialized.
+This is the case if the PCU state was already used (and thus loaded) by the LWP
+and has not been discarded since.
+.It Dv PCU_REENABLE
+Indicate that a fault reoccurred while the PCU state is loaded,
+therefore PCU should be re-enabled.
+This happens if LWP is context switched to another CPU and then switched
+back to the original CPU while the state on that CPU has not been changed
+by other LWPs.
+It may also happen due to instruction "bouncing" on some architectures.
+.El
 .It Fn pcu_state_release
-indicate to MD code that the PCU ownership by the LWP was released,
+Indicate to MD code that the PCU ownership by the LWP was released,
 therefore the next use of PCU on the LWP shall be detected and
 .Fn pcu_load
-be called to reacquire ownership.
-For example, this would often be the changing of a bit for a CPU to
+be called to reacquire the ownership.
+For example, this would normally be the changing of a bit for a CPU to
 trap on the execution of one of the PCU's instructions.
 .El
+.\" -----
 .Sh FUNCTIONS
-.Bl -tag -width compact
+.Bl -tag -width pcu_save_allXXX
 .It Fn pcu_load
-Load (initialize) the PCU state of the current LWP on the current CPU.
+Load or initialize the PCU state of the current LWP on the current CPU.
 .It Fn pcu_save
 Save the specified PCU state to the given LWP.
 .It Fn pcu_discard
 Discard the specified PCU state of the current LWP.
-.It Fn pcu_used_p
-Return true if PCU was used (i.e.
+The PCU state will be considered invalid,
+unless the "valid" parameter is set to true.
+.It Fn pcu_valid_p
+Return true if PCU state is considered valid.
+Generally, it always becomes "valid" when
 .Fn pcu_load
-was called) by the LWP.
+is called by the LWP.
 Otherwise, return false.
+.It Fn pcu_discard_all
+Discard all PCU states of the given LWP; generally used by exec and exit.
 .It Fn pcu_save_all
-Save all PCU state of the given LWP, so that it could be used later.
+Save all PCU states of the given LWP; generally used during new LWP
+creation so that the PCU state of the parent could be copied.
 .El
 .\" -----
 .Sh CODE REFERENCES
@@ -103,3 +126,5 @@ is implemented within the file
 .Sh HISTORY
 PCU first appeared in
 .Nx 6.0 .
+.Sh AUTHORS
+.An Mindaugas Rasiukevicius Aq Mt rm...@netbsd.org

Index: src/share/man/man9/uvm_km.9
diff -u src/share/man/man9/uvm_km.9:1.2 src/share/man/man9/uvm_km.9:1.2.18.1
--- src/share/man/man9/uvm_km.9:1.2	Fri Jun  3 18:43:38 2011
+++ src/share/man/man9/uvm_km.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: uvm_km.9,v 1.2 2011/06/03 18:43:38 rmind Exp $
+.\"	$NetBSD: uvm_km.9,v 1.2.18.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 1998 Matthew R. Green
 .\" All rights reserved.
@@ -39,7 +39,7 @@
 .Fn uvm_km_free "struct vm_map *map" "vaddr_t addr" "vsize_t size" "uvm_flag_t flags"
 .Ft struct vm_map *
 .Fn uvm_km_suballoc "struct vm_map *map" "vaddr_t *min" "vaddr_t *max" \
-"vsize_t size" "int flags" "bool fixed" "struct vm_map_kernel *submap"
+"vsize_t size" "int flags" "bool fixed" "struct vm_map *submap"
 .Sh DESCRIPTION
 The UVM facility for allocation of kernel memory or address space in pages.
 Both wired and pageable memory can be allocated by this facility, as well
Index: src/share/man/man9/uvm_map.9
diff -u src/share/man/man9/uvm_map.9:1.2 src/share/man/man9/uvm_map.9:1.2.18.1
--- src/share/man/man9/uvm_map.9:1.2	Fri Jun  3 18:43:38 2011
+++ src/share/man/man9/uvm_map.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: uvm_map.9,v 1.2 2011/06/03 18:43:38 rmind Exp $
+.\"	$NetBSD: uvm_map.9,v 1.2.18.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 1998 Matthew R. Green
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd June 3, 2011
+.Dd May 20, 2014
 .Dt UVM_MAP 9
 .Os
 .Sh NAME
@@ -81,11 +81,14 @@ The new mapping has size
 .Fa size ,
 which must be a multiple of
 .Dv PAGE_SIZE .
+.Pp
 The
 .Fa uobj
 and
 .Fa uoffset
-arguments can have four meanings.
+arguments can have four meanings:
+.Bl -bullet -offset abcd -compact
+.It
 When
 .Fa uobj
 is
@@ -98,10 +101,16 @@ is
 does not use the machine-dependent
 .Dv PMAP_PREFER
 function.
-If
+.It
+When
+.Fa uobj
+is
+.Dv NULL
+and
 .Fa uoffset
 is any other value, it is used as the hint to
 .Dv PMAP_PREFER .
+.It
 When
 .Fa uobj
 is not
@@ -113,11 +122,22 @@ is
 .Fn uvm_map
 finds the offset based upon the virtual address, passed as
 .Fa startp .
-If
+.It
+When
+.Fa uobj
+is not
+.Dv NULL
+and
 .Fa uoffset
 is any other value, then a regular mapping is performed at this offset.
 The start address of the map will be returned in
 .Fa startp .
+.El
+Note that
+.Fn uvm_map
+does not add a reference to
+.Fa uobj ;
+it is the caller's responsibility to do so.
 .Pp
 .Fa align
 specifies alignment of mapping unless
@@ -134,12 +154,13 @@ are typically created using the
 .Fn UVM_MAPFLAG "vm_prot_t prot" "vm_prot_t maxprot" "vm_inherit_t inh" \
 "int advice" "int flags"
 macro, which uses the following values.
-The
+.Pp
+The values that
 .Fa prot
 and
 .Fa maxprot
 can take are:
-.Bl -tag -width UVM_ADV_SEQUENTIAL
+.Bl -tag -offset abcd -compact -width UVM_ADV_SEQUENTIAL
 .It UVM_PROT_NONE
 No protection bits.
 .It UVM_PROT_R
@@ -151,7 +172,6 @@ Exec.
 .It UVM_PROT_MASK
 Mask to extraction the protection bits.
 .El
-.Pp
 Additionally, the following constants for ORed values are available:
 .Dv UVM_PROT_RW ,
 .Dv UVM_PROT_RX ,
@@ -162,7 +182,7 @@ and
 The values that
 .Fa inh
 can take are:
-.Bl -tag -width UVM_ADV_SEQUENTIAL
+.Bl -tag -offset abcd -compact -width UVM_ADV_SEQUENTIAL
 .It UVM_INH_SHARE
 Share the map.
 .It UVM_INH_COPY
@@ -176,13 +196,13 @@ Mark to extract inherit flags.
 The values that
 .Fa advice
 can take are:
-.Bl -tag -width UVM_ADV_SEQUENTIAL
+.Bl -tag -offset abcd -compact -width UVM_ADV_SEQUENTIAL
 .It UVM_ADV_NORMAL
 "Normal" use.
 .It UVM_ADV_RANDOM
-"Random" access likelyhood.
+"Random" access likelihood.
 .It UVM_ADV_SEQUENTIAL
-"Sequential" access likelyhood.
+"Sequential" access likelihood.
 .It UVM_ADV_MASK
 Mask to extract the advice flags.
 .El
@@ -190,7 +210,7 @@ Mask to extract the advice flags.
 The values that
 .Fa flags
 can take are:
-.Bl -tag -width UVM_ADV_SEQUENTIAL
+.Bl -tag -offset abcd -compact -width UVM_ADV_SEQUENTIAL
 .It UVM_FLAG_FIXED
 Attempt to map on the address specified by
 .Fa startp .
@@ -202,7 +222,7 @@ Do not merge map entries, if such merge 
 .It UVM_FLAG_COPYONW
 Use copy-on-write i.e. do not fault in the pages immediately.
 .It UVM_FLAG_AMAPPAD
-User for BSS: alocate larger amap, if extending is likely.
+Used for BSS: allocate larger amap, if extending is likely.
 .It UVM_FLAG_TRYLOCK
 Fail if cannot acquire the lock immediately.
 .It UVM_FLAG_NOWAIT
@@ -231,8 +251,8 @@ The
 .Dv UVM_MAXPROTECTION
 and
 .Dv UVM_ADVICE
-macros return the protection, inheritance, maximum protection and advice,
-respectively.
+macros return the protection, inheritance, maximum protection, and
+advice, respectively.
 .Fn uvm_map
 returns zero on success or error number otherwise.
 .Pp
@@ -348,7 +368,7 @@ frees a u-area allocated with
 .Fn uvm_uarea_system_alloc
 and
 .Fn uvm_uarea_system_free
-are optimised routines, which are used for kernel threads.
+are optimized routines, which are used for kernel threads.
 .Sh SEE ALSO
 .Xr pmap 9 ,
 .Xr uvm 9 ,

Index: src/share/man/man9/vfssubr.9
diff -u src/share/man/man9/vfssubr.9:1.23 src/share/man/man9/vfssubr.9:1.23.2.1
--- src/share/man/man9/vfssubr.9:1.23	Tue Mar 18 10:21:47 2014
+++ src/share/man/man9/vfssubr.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"     $NetBSD: vfssubr.9,v 1.23 2014/03/18 10:21:47 hannken Exp $
+.\"     $NetBSD: vfssubr.9,v 1.23.2.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 2003, 2005, 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd March 18, 2014
+.Dd May 24, 2014
 .Dt VFSSUBR 9
 .Os
 .Sh NAME
@@ -100,11 +100,11 @@
 .Ft void
 .Fn vfs_resume "struct mount *mp"
 .Ft void
-.Fn vfs_vnode_iterator_init "struct mount *mp" " struct vnode_iterator **vip"
+.Fn vfs_vnode_iterator_init "struct mount *mp" "struct vnode_iterator **vip"
 .Ft void
 .Fn vfs_vnode_iterator_destroy "struct vnode_iterator *vi"
-.Ft bool
-.Fn vfs_vnode_iterator_next "struct vnode_iterator *vi" " struct vnode **vpp"
+.Ft struct vnode *
+.Fn vfs_vnode_iterator_next "struct vnode_iterator *vi" "bool (*selector)(void *context, struct vnode *vpp)" "void *context"
 .Sh DESCRIPTION
 The high-level functions described in this page are the interface to
 the kernel file system interface (VFS).
@@ -243,20 +243,25 @@ over all vnodes attached to mount point
 .It Fn vfs_vnode_iterator_destroy "vi"
 Free all resources associated with an iterator
 .Fa vi .
-.It Fn vfs_vnode_iterator_next "vi" "vpp"
+.It Fn vfs_vnode_iterator_next "vi" "selector" "context"
 Return the next vnode from iterator
 .Fa vi .
 If the operation is successful the vnode has a reference added to it
-and it is returned in
-.Fa *vpp
-and the function returns
-.Dv true .
-If the iterator is exhausted,
-.Fa *vpp
-is
-.Dv NULL
-and the function returns
-.Dv false .
+and it is returned.
+If the iterator is exhausted the function returns
+.Dv NULL .
+If an optional
+.Fa selector
+function is provided, then this function is called with the
+.Fa context
+provided and the candidate vnode to be returned.
+If the
+.Fa selector
+returns
+.Dv false ,
+then the vnode is skipped; if it returns
+.Dv true ,
+the vnode is referenced and then returned.
 .El
 .Sh CODE REFERENCES
 The vfs interface functions are implemented within the files

Index: src/share/man/man9/vnodeops.9
diff -u src/share/man/man9/vnodeops.9:1.93 src/share/man/man9/vnodeops.9:1.93.2.1
--- src/share/man/man9/vnodeops.9:1.93	Thu Feb 27 16:51:37 2014
+++ src/share/man/man9/vnodeops.9	Sun Aug 10 06:53:26 2014
@@ -1,4 +1,4 @@
-.\"     $NetBSD: vnodeops.9,v 1.93 2014/02/27 16:51:37 hannken Exp $
+.\"     $NetBSD: vnodeops.9,v 1.93.2.1 2014/08/10 06:53:26 tls Exp $
 .\"
 .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 27, 2014
+.Dd July 21, 2014
 .Dt VNODEOPS 9
 .Os
 .Sh NAME
@@ -42,6 +42,8 @@
 .Nm VOP_SETATTR ,
 .Nm VOP_READ ,
 .Nm VOP_WRITE ,
+.Nm VOP_FALLOCATE ,
+.Nm VOP_FDISCARD ,
 .Nm VOP_IOCTL ,
 .Nm VOP_FCNTL ,
 .Nm VOP_POLL ,
@@ -115,6 +117,10 @@
 .Fn VOP_WRITE "struct vnode *vp" "struct uio *uio" "int ioflag" \
 "kauth_cred_t cred"
 .Ft int
+.Fn VOP_FALLOCATE "struct vnode *vp" "off_t pos" "off_t len"
+.Ft int
+.Fn VOP_FDISCARD "struct vnode *vp" "off_t pos" "off_t len"
+.Ft int
 .Fn VOP_IOCTL "struct vnode *vp" "u_long command" "void *data" \
 "int fflag" "kauth_cred_t cred"
 .Ft int
@@ -135,7 +141,7 @@
 .Fn VOP_SEEK "struct vnode *vp" "off_t oldoff" "off_t newoff" \
 "kauth_cred_t cred"
 .Ft int
-.Fn VOP_REMOVE "struct vnode *vp" "struct vnode *vp" \
+.Fn VOP_REMOVE "struct vnode *dvp" "struct vnode *vp" \
 "struct componentname *cnp"
 .Ft int
 .Fn VOP_LINK "struct vnode *dvp" "struct vnode *vp" \
@@ -235,6 +241,8 @@ The following table gives a summary of t
 .It VOP_SETATTR	Set file attributes
 .It VOP_READ	Read from a file
 .It VOP_WRITE	Write to a file
+.It VOP_FALLOCATE	Allocate backing for a file
+.It VOP_FDISCARD	Discard backing for a file
 .It VOP_IOCTL	Perform device-specific I/O
 .It VOP_FCNTL	Perform file control
 .It VOP_POLL	Test if poll event has occurred
@@ -555,6 +563,10 @@ Attributes which are not available are s
 .Pp
 For more information on vnode attributes see
 .Xr vattr 9 .
+Historically it was considered acceptable to call
+.Fn VOP_GETATTR
+without first locking the vnode.
+This usage is deprecated.
 .Pp
 The vnode
 .Fa vp
@@ -649,6 +661,50 @@ The low 16 bits are a bit mask which can
 .Pp
 Zero is returned on success, otherwise an error is returned.
 The vnode should be locked on entry and remains locked on exit.
+.It Fn VOP_FALLOCATE "vp" "pos" "len"
+Allocate backing store.
+The argument
+.Fa vp
+is the vnode for the file.
+The
+.Fa pos
+and
+.Fa len
+arguments (specified in bytes) name an extent within the file.
+The blocks underlying this range, rounding up at the top and down at
+the bottom if needed, are checked; if no physical storage is
+allocated, a physical block is allocated and zeroed.
+This operation removes
+.Dq holes
+from files.
+.It Fn VOP_FDISCARD "vp" "pos" "len"
+Discard backing store.
+The argument
+.Fa vp
+is the vnode for the file.
+The
+.Fa pos
+and
+.Fa len
+arguments (specified in bytes) name an extent within the file.
+The blocks underlying this range, rounding down at the top and up at
+the bottom if needed, are checked.
+If any physical storage is used, it is deallocated.
+This operation creates
+.Dq holes
+in files.
+Discarded blocks of regular files read back afterwards as zeroes.
+On devices, the underlying discard-block operation if any (e.g. ATA
+TRIM) is issued.
+The device handles this as it sees fit.
+In particular it is
+.Em not
+guaranteed that discarded blocks on devices will be zeroed; reading a
+discarded block might produce zeros, or ones, or the previously
+existing data, or some other data, or trash.
+.\" XXX: if you discard part of a block in a regular file, should that
+.\" part be explicitly zeroed? Also, how do you find the underlying
+.\" block size?
 .It Fn VOP_IOCTL "vp" "command" "data" "fflag" "cred"
 Perform device-specific I/O.
 The argument
@@ -851,11 +907,18 @@ is the pathname component about the file
 If the operation is successful zero is returned, otherwise an error
 code is returned.
 .Pp
+The caller must hold the target file system's rename lock.
 The source directory and file vnodes should be unlocked and their
 reference counts should be incremented before entry.
 The target directory and file vnodes should both be locked on entry.
 .Fn VOP_RENAME
 updates the reference counts prior to returning.
+.Pp
+Because of the complexity and nastiness of the interface, please do
+not write new code that calls
+.Fn VOP_RENAME
+directly until such time as ongoing cleanup work reaches a point where
+the interface has been rendered halfway sane.
 .It Fn VOP_MKDIR "dvp" "vpp" "cnp" "vap"
 Make a new directory in a given directory.
 The argument

Added files:

Index: src/share/man/man4/asus.4
diff -u /dev/null src/share/man/man4/asus.4:1.3.2.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man4/asus.4	Sun Aug 10 06:53:25 2014
@@ -0,0 +1,77 @@
+.\" $NetBSD: asus.4,v 1.3.2.2 2014/08/10 06:53:25 tls Exp $
+.\"
+.\" Copyright (c) 2008 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" 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 July 13, 2014
+.Dt ASUS 4
+.Os
+.Sh NAME
+.Nm asus
+.Nd ASUS hotkeys
+.Sh SYNOPSIS
+.Cd "asus*  at acpi?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for hotkeys available in various ASUS laptops and
+netbooks (Eee PC series included).
+.Pp
+The following hotkeys are directly handled by
+.Nm :
+.Bl -tag -width pcdisplay -offset indent
+.It \&Fn + F3
+Decrease LCD brightness
+.It \&Fn + F4
+Increase LCD brightness
+.It \&Fn + F5
+Switch between LCD and external video output
+.It \&Fn + F7
+Toggle audio
+.It \&Fn + F8
+Volume down
+.It \&Fn + F9
+Volume up
+.El
+.Sh SEE ALSO
+.Xr acpi 4 ,
+.Xr powerd 8
+.Sh HISTORY
+The
+.Nm
+driver appeared in
+.Nx 5.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+device driver was written by
+.An Jared D. McNeill .
+This man page was written by
+.An Leonardo Taccari .
+.Sh BUGS
+At the moment
+.Nm
+does not handle
+Fn + F6 (Task manager).

Index: src/share/man/man4/bpfjit.4
diff -u /dev/null src/share/man/man4/bpfjit.4:1.2.2.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man4/bpfjit.4	Sun Aug 10 06:53:25 2014
@@ -0,0 +1,116 @@
+.\" -*- nroff -*-
+.\"
+.\"	$NetBSD: bpfjit.4,v 1.2.2.2 2014/08/10 06:53:25 tls Exp $
+.\"
+.\" Copyright (c) 2014 Alexander Nasonov.
+.\" All rights reserved.
+.\"
+.\" 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 COPYRIGHT HOLDERS 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
+.\" COPYRIGHT HOLDERS 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 July 24, 2014
+.Dt BPFJIT 4
+.Os
+.Sh NAME
+.Nm bpfjit
+.Nd Just-In-Time compiler for Berkeley Packet Filter
+.Sh SYNOPSIS
+.Cd "options BPFJIT"
+.Cd "options SLJIT"
+.Sh DESCRIPTION
+The
+.Nm
+kernel interface adds
+.Sy Just-In-Time
+compilation of filter programs sent to a
+.Xr bpf 4
+device.
+Instead of being interpreted for every packet,
+these filter programs are compiled into native code
+and the code is being executed for every packet.
+.Pp
+The implementation of
+.Nm
+is based on the
+.Sy Stack-Less Just-In-Time
+library, or
+.Nm sljit
+for short.
+The library supports multiple platforms including
+.Bl -bullet -offset indent -compact
+.It
+AMD-x86 64
+.It
+ARM 32 (ARM-v5, ARM-v7 and Thumb2 instruction sets)
+.It
+Intel-x86 32
+.It
+MIPS 32 (III, R1)
+.It
+MIPS 64 (III, R1)
+.It
+PowerPC 32
+.It
+PowerPC 64
+.It
+SPARC 32
+.El
+.Pp
+.Nm
+supports all architectures listed above.
+.Pp
+.Nm
+is also available as a module in modular kernels.
+.Sh SYSCTLS
+The following sysctl is available when
+.Nm
+is enabled:
+.Bl -tag -width "XnetXbpfXjitXX"
+.It Li net.bpf.jit
+Toggle
+.Sy Just-In-Time
+compilation of new filter programs.
+Changing a value of this sysctl doesn't affect
+existing filter programs.
+.El
+.Sh SEE ALSO
+.Xr bpf 4 ,
+.Xr modload 8
+.Pp
+.Lk http://sljit.sourceforge.net/ sljit library
+.Sh HISTORY
+The
+.Nm
+interface first appeared in
+.Nx 7.0 .
+.Sh AUTHORS
+The
+.Nm
+code was written by
+.An Alexander Nasonov Aq Mt al...@netbsd.org .
+.Pp
+The
+.Nm sljit
+library was written by
+.An Zoltan Herczeg Aq Mt hzmes...@freemail.hu .
Index: src/share/man/man4/hythygtemp.4
diff -u /dev/null src/share/man/man4/hythygtemp.4:1.2.2.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man4/hythygtemp.4	Sun Aug 10 06:53:25 2014
@@ -0,0 +1,64 @@
+.\"	$NetBSD: hythygtemp.4,v 1.2.2.2 2014/08/10 06:53:25 tls Exp $
+.\"
+.\" Copyright (c) 2014 Frank Kardel
+.\" All rights reserved.
+.\"
+.\" 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 AUTHOR 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 May 18, 2014
+.Dt HYTHYGTEMP 4
+.Os
+.Sh NAME
+.Nm hythygtemp
+.Nd Driver for IST-AG HYT-221/271/939 sensor chip via I2C bus
+.Sh SYNOPSIS
+.Cd "hythygtemp* at iic? addr 0x28"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides measurements from the HYT-221/271/939 humidity/temperature
+sensors via the
+.Xr envsys 4
+framework.
+The
+.Nm
+.Ar addr
+argument selects the address at the
+.Xr iic 4
+bus.
+The sensor chips can be reconfigured to respond to other addresses than the
+default value of 0x28.
+.Sh SEE ALSO
+.Xr envsys 4 ,
+.Xr iic 4 ,
+.Xr envstat 8
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 7.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Frank Kardel Aq Mt kar...@netbsd.org .

Index: src/share/man/man4/mcp23s17gpio.4
diff -u /dev/null src/share/man/man4/mcp23s17gpio.4:1.2.4.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man4/mcp23s17gpio.4	Sun Aug 10 06:53:25 2014
@@ -0,0 +1,64 @@
+.\"	$NetBSD: mcp23s17gpio.4,v 1.2.4.2 2014/08/10 06:53:25 tls Exp $
+.\"
+.\"Copyright (c) 2014 Frank Kardel
+.\"All rights reserved.
+.\"
+.\"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 AUTHOR 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 April 6, 2014
+.Dt MCP23S17GPIO 4
+.Os
+.Sh NAME
+.Nm mcp23s17gpio
+.Nd Driver for MCP23S17 gpio chip via SPI bus
+.Sh SYNOPSIS
+.Cd "mcp23s17gpio0 at spi? slave 0 flags 0"
+.Cd "mcp23s17gpio1 at spi? slave 0 flags 1"
+.Cd "mcp23s17gpio2 at spi? slave 0 flags 2"
+.Cd "mcp23s17gpio3 at spi? slave 0 flags 3"
+.Cd "gpio* at gpiobus?"
+.Sh DESCRIPTION
+The
+.Nm
+driver supports up to 8 instances of the MCP23S17 16-bit GPIO chips.
+Access to the pins is provided by the
+.Xr gpio 4
+interface.
+The
+.Nm
+.Ar flags
+argument selects the hardware address of the chip instance.
+.Sh SEE ALSO
+.Xr gpio 4 ,
+.Xr intro 4 ,
+.Xr spi 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 7.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Frank Kardel Aq Mt kar...@netbsd.org .

Index: src/share/man/man4/man4.evbarm/bcmgpio.4
diff -u /dev/null src/share/man/man4/man4.evbarm/bcmgpio.4:1.1.4.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man4/man4.evbarm/bcmgpio.4	Sun Aug 10 06:53:25 2014
@@ -0,0 +1,65 @@
+.\"	$NetBSD: bcmgpio.4,v 1.1.4.2 2014/08/10 06:53:25 tls Exp $
+.\"
+.\"Copyright (c) 2014 Frank Kardel
+.\"All rights reserved.
+.\"
+.\"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 AUTHOR 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 April 21, 2014
+.Dt BCMGPIO 4
+.Os
+.Sh NAME
+.Nm bcmgpio
+.Nd driver for BCM2835 onboard gpio
+.Sh SYNOPSIS
+.Cd "bcmgpio0 at obio?"
+.Cd "bcmgpio1 at obio?"
+.Cd "gpio* at gpiobus?"
+.Sh DESCRIPTION
+The
+.Nm
+driver supports up to two instances.
+Access to the pins is provided by the
+.Xr gpio 4
+interface.
+The
+.Nm
+.Ar unitnumber
+argument selects the pin range.
+Unit 0 covers GPIO pins 0 through 31 and unit 1 covers pins 32
+through 53.
+GPIO pins being used in alternate configurations are not available
+for GPIO operations.
+.Sh SEE ALSO
+.Xr gpio 4 ,
+.Xr intro 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 7.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Frank Kardel Aq Mt kar...@netbsd.org .

Index: src/share/man/man4/man4.x86/vmx.4
diff -u /dev/null src/share/man/man4/man4.x86/vmx.4:1.2.2.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man4/man4.x86/vmx.4	Sun Aug 10 06:53:25 2014
@@ -0,0 +1,115 @@
+.\"	$NetBSD: vmx.4,v 1.2.2.2 2014/08/10 06:53:25 tls Exp $
+.\"	$OpenBSD: vmx.4,v 1.1 2013/05/31 20:18:44 reyk Exp $
+.\"
+.\" Copyright (c) 2006,2013 Reyk Floeter <r...@openbsd.org>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd June 7, 2014
+.Dt VMX 4
+.Os
+.Sh NAME
+.Nm vmx
+.Nd VMware VMXNET3 Virtual Interface Controller device
+.Sh SYNOPSIS
+.Cd "vmx* at pci? dev ? function ?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the VMXNET3 virtual NIC available in virtual
+machines by VMware.
+It appears as a simple Ethernet device but is actually a virtual network
+interface to the underlying host operating system.
+.Pp
+This driver supports the
+.Ic VMXNET3
+driver protocol, as an alternative to the emulated
+.Xr pcn 4 ,
+.Xr wm 4
+interfaces also available in the VMware environment.
+The
+.Nm vmx
+driver is optimized for the virtual machine, it can provide advanced
+capabilities depending on the underlying host operating system and
+the physical network interface controller of the host.
+In comparison to the earlier VMXNET versions,
+VMXNET3 supports additional features like multiqueue support, IPv6
+checksum offloading, MSI/MSI-X support and hardware VLAN tagging in
+VMware's VLAN Guest Tagging (VGT) mode.
+.Pp
+The
+.Nm
+driver supports VMXNET3 VMware virtual NICs provided by the virtual
+machine hardware version 7 or newer, as provided by the following
+products:
+.Pp
+.Bl -bullet -compact -offset indent
+.It
+VMware ESX/ESXi 4.0 and newer
+.It
+VMware Server 2.0 and newer
+.It
+VMware Workstation 6.5 and newer
+.It
+VMware Fusion 2.0 and newer
+.El
+.Pp
+The
+.Nm
+driver supports the following media types:
+.Bl -tag -width autoselect
+.It autoselect
+Enable autoselection of the media type and options.
+The driver always uses the fastest available speed and the media
+options provided by the underlying host of the virtual machine.
+.It 10GbaseT mediaopt full-duplex
+Set 10Gbps operation.
+.It 1000baseT mediaopt full-duplex
+Set 1000Mbps operation.
+.El
+.Pp
+For more information on configuring this device, see
+.Xr ifconfig 8 .
+.Sh EXAMPLES
+The following entry must be added to the VMware configuration file
+to provide the
+.Nm
+device:
+.Bd -literal -offset indent
+ethernet0.virtualDev = "vmxnet3"
+.Ed
+.Sh SEE ALSO
+.Xr arp 4 ,
+.Xr ifmedia 4 ,
+.Xr intro 4 ,
+.Xr netintro 4 ,
+.Xr pci 4 ,
+.Xr pcn 4 ,
+.Xr wm 4 ,
+.Xr ifconfig 8
+.Sh HISTORY
+The
+.Nm
+device driver first appeared in
+.Ox 5.5
+and was ported for
+.Nx 7.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was originally written by
+.An Tsubai Masanari .
+.Nx porting was done by
+.An Hikaru ABE
+.Aq Mt hik...@netbsd.org .

Index: src/share/man/man9/ipi.9
diff -u /dev/null src/share/man/man9/ipi.9:1.2.2.2
--- /dev/null	Sun Aug 10 06:53:26 2014
+++ src/share/man/man9/ipi.9	Sun Aug 10 06:53:26 2014
@@ -0,0 +1,176 @@
+.\" $NetBSD: ipi.9,v 1.2.2.2 2014/08/10 06:53:26 tls Exp $
+.\"
+.\" Copyright (c) 2014 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Mindaugas Rasiukevicius.
+.\"
+.\" 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 May 25, 2014
+.Dt IPI 9
+.Os
+.Sh NAME
+.Nm ipi
+.Nd MI IPI interface
+.Sh SYNOPSIS
+.In sys/ipi.h
+.Vt typedef void (*ipi_func_t)(void *);
+.\" -----
+.Ft u_int
+.Fn ipi_register "ipi_func_t func" "void *arg"
+.Ft void
+.Fn ipi_unregister "u_int ipi_id"
+.Ft void
+.Fn ipi_trigger "u_int ipi_id" "struct cpu_info *ci"
+.\" -----
+.Ft void
+.Fn ipi_unicast "ipi_msg_t *msg" "struct cpu_info *ci"
+.Ft void
+.Fn ipi_multicast "ipi_msg_t *msg" "const kcpuset_t *target"
+.Ft void
+.Fn ipi_broadcast "ipi_msg_t *msg"
+.Ft void
+.Fn ipi_wait "ipi_msg_t *msg"
+.\" -----
+.Sh DESCRIPTION
+The machine-independent
+.Nm
+interface provides capability to send inter-processor interrupts (IPIs)
+amongst CPUs.
+The interface has two mechanisms: asynchronous IPI to invoke functions
+with a constant argument and synchronous IPIs with the cross-call support.
+.Pp
+Other synchronization interfaces are built using the MI IPI interface.
+For a general purpose inter-processor cross-calls or remote
+interrupts, use the
+.Xr xcall 9
+or
+.Xr softint 9
+interfaces.
+.Pp
+The primary use cases of the MI IPIs include the following:
+.Bl -hyphen -compact
+.It
+provide a facility for the
+.Xr softint 9
+subsystem to schedule software interrupts on remote CPUs
+.It
+provide a facility for the
+.Xr xcall 9
+subsystem
+.It
+abstract IPI handling and facilitate machine-dependent code
+.El
+.\" -----
+.Ss Asynchronous IPI interface
+This interface allows dynamic registration of IPI handlers with a constant
+argument and asynchronous triggering of interrupts.
+.Bl -tag -width compact
+.It Fn ipi_register "func" "arg"
+Register an IPI handler
+.Fa func
+with an arbitrary argument
+.Fa arg .
+Returns a non-zero IPI identifier on success and zero on failure.
+.It Fn ipi_unregister "ipi_id"
+Unregister the IPI handler identified by the
+.Fa ipi_id .
+.It Fn ipi_trigger "ipi_id" "ci"
+Trigger an IPI identified by
+.Fa ipi_id
+on a remote CPU specified by
+.Fa ci .
+This function must be called with the kernel preemption disabled and
+the target CPU must be remote.
+.El
+.\" -----
+.Ss Synchronous IPI interface
+This interface provides capability to perform cross-calls, i.e. invoke
+an arbitrary function on a remote CPU.
+The invocations are performed synchronously and the caller must wait
+for completion.
+The cross-call is described by an IPI "message".
+The caller has to fill in an
+.Vt ipi_msg_t
+structure which has the following public members:
+.Bd -literal
+        ipi_func_t	func;
+        void		arg;
+.Ed
+.Pp
+The
+.Ar func
+member specifies a function to invoke and
+.Ar arg
+is the argument to be passed to the function.
+.Pp
+.Bl -tag -width compact
+.It Fn ipi_unicast "msg" "ci"
+Send an IPI to a remote CPU specified by
+.Fa ci .
+.It Fn ipi_multicast "msg" "target"
+Send IPIs to a CPU set specified by
+.Fa target .
+.It Fn ipi_broadcast "msg"
+Send IPIs to all CPUs.
+.It Fn ipi_wait "msg"
+Wait until all IPIs complete.
+.El
+.Pp
+All described functions, except
+.Fn ipi_wait ,
+must be called with the kernel preemption disabled.
+All synchronous IPI invocations must be completed (wait for them with the
+.Fn ipi_wait
+function) before the IPI message structure can be destroyed or new
+cross-call requests can be performed.
+.\" -----
+.Sh NOTES
+Functions being called must be lightweight.
+They run at
+.Dv IPL_HIGH
+and should generally not use any other synchronization interfaces
+such as
+.Xr mutex 9 .
+If spin-locks are used, they must be used carefully and have no contention.
+.\" -----
+.Sh CODE REFERENCES
+The
+.Nm
+interface is implemented within the file
+.Pa sys/kern/subr_ipi.c .
+.\" -----
+.Sh SEE ALSO
+.Xr kcpuset 9 ,
+.Xr kpreempt 9 ,
+.Xr softint 9 ,
+.Xr spl 9 ,
+.Xr xcall 9
+.Sh HISTORY
+The
+.Nm
+interface first appeared in
+.Nx 7.0 .
+.Sh AUTHORS
+.An Mindaugas Rasiukevicius Aq Mt rm...@netbsd.org

Reply via email to