freebsd-dev/sys
Bjoern A. Zeeb 3f58662dd9 The pr_destroy field does not allow us to run the teardown code in a
specific order.  VNET_SYSUNINITs however are doing exactly that.
Thus remove the VIMAGE conditional field from the domain(9) protosw
structure and replace it with VNET_SYSUNINITs.
This also allows us to change some order and to make the teardown functions
file local static.
Also convert divert(4) as it uses the same mechanism ip(4) and ip6(4) use
internally.

Slightly reshuffle the SI_SUB_* fields in kernel.h and add a new ones, e.g.,
for pfil consumers (firewalls), partially for this commit and for others
to come.

Reviewed by:		gnn, tuexen (sctp), jhb (kernel.h)
Obtained from:		projects/vnet
MFC after:		2 weeks
X-MFC:			do not remove pr_destroy
Sponsored by:		The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D6652
2016-06-01 10:14:04 +00:00
..
amd64
arm Fix a crash while iterating compat strings when no match is found. 2016-05-31 21:58:09 +00:00
arm64 Return real error value instead of hard-coded ENXIO (fix after r300149) 2016-06-01 08:20:10 +00:00
boot Add missing libc includes to fix -Wimplicit-function-declaration warnings 2016-05-31 06:24:09 +00:00
bsm
cam
cddl Set oldfp so the check for fp == oldfp works as expected. 2016-05-31 11:32:09 +00:00
compat Fix kernel stack disclosures in the Linux and 4.3BSD compat layers. 2016-05-31 16:56:30 +00:00
conf hyperv: Rename some cleaned up/almost cleaned up files 2016-06-01 09:20:52 +00:00
contrib [ath_hal] implement shared PA handling checks, based on ath9k. 2016-06-01 03:49:22 +00:00
crypto Connect the SHA-512t256 and Skein hashing algorithms to ZFS 2016-05-31 04:12:14 +00:00
ddb
dev hyperv: Rename some cleaned up/almost cleaned up files 2016-06-01 09:20:52 +00:00
fs
gdb
geom
gnu
i386
isa
kern The pr_destroy field does not allow us to run the teardown code in a 2016-06-01 10:14:04 +00:00
kgssapi
libkern
mips
modules hyperv: Rename some cleaned up/almost cleaned up files 2016-06-01 09:20:52 +00:00
net In if_attachdomain1() there does not seem to be any reason 2016-05-28 08:32:15 +00:00
net80211 net80211: replace m_getcl/m_gethdr pair with m_get2 in ieee80211_fragment() 2016-05-28 19:13:39 +00:00
netgraph
netinet The pr_destroy field does not allow us to run the teardown code in a 2016-06-01 10:14:04 +00:00
netinet6 The pr_destroy field does not allow us to run the teardown code in a 2016-06-01 10:14:04 +00:00
netipsec
netnatm
netpfil Cast some expressions that multiply a long long constant by a 2016-05-29 07:23:56 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
pc98
powerpc
riscv
rpc
security
sparc64
sys The pr_destroy field does not allow us to run the teardown code in a 2016-06-01 10:14:04 +00:00
teken
tests
tools
ufs
vm Do not leak the vm object lock when swap reservation failed, in 2016-05-29 15:46:19 +00:00
x86 Implement _ALIGN() using internal integer types. 2016-05-31 13:31:19 +00:00
xdr
xen
Makefile