Add more references.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after:	1 week
Remove unused code and sort variables declarations.

PR:		kern/181822
MFC after:	1 week
Correct the logic broken in my last commit.

Reported by:	tijl
Remove stub implementation.

MFC after:	1 week
Add support for DLINK DWA-127 Wireless Adapter

Approved by:	cognet (mentor)
Fix !CAPABILITIES build.
Handle cases where capability rights are not provided.

Reported by:	kib
The fget() function now takes pointer to cap_rights_t, so change 0 to NULL.
Correct two comments.
authpf needs /var/authpf to exist and be writable by group authpf.
The vm_page_trysbusy() should not fail when shared busy counter or
VPB_BIT_WAITERS flag were changed between reading of busy_lock and the
cas.  The vm_page_sbusy(), which is the only user of
vm_page_trysbusy() in the tree, panics on the failure, which in these
cases is transient and do not mean that the current page state
prevents sbusying.

Retry the operation inside vm_page_trysbusy() if cas failed, only
return a failure when VPB_BIT_SHARED is cleared.

Reported and tested by:	pho
Reviewed by:	attilio
Sponsored by:	The FreeBSD Foundation
The vm_pageout_flush() functions sbusies pages in the passed pages
run.  After that, the pager put method is called, usually translated
to VOP_WRITE().  For the filesystems which use buffer cache,
bufwrite() sbusies the buffer pages again, waiting for the xbusy state
to drain.  The later is done in vfs_drain_busy_pages(), which is
called with the buffer pages already sbusied (by vm_pageout_flush()).

Since vfs_drain_busy_pages() can only wait for one page at the time,
and during the wait, the object lock is dropped, previous pages in the
buffer must be protected from other threads busying them.  Up to the
moment, it was done by xbusying the pages, that is incompatible with
the sbusy state in the new implementation of busy.  Switch to sbusy.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
Fix build.
counter.h requires systm.h
Fix build.
Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[].  This
matches the types used when computing hash indices and the type of the
maximum size of mfchashtbl[].

PR:		kern/181821
Submitted by:	Sven-Thorsten Dietrich <sven@vyatta.com> (IPv4)
MFC after:	1 week
Use LIST_FOREACH_SAFE() instead of doing it by hand.
Import bmake-20130904
Tag bmake-20130904
Merge bmake-20130904
Minor printf nit to keep out clean