summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-07-28 22:17:34 +0000
committerrwatson <rwatson@FreeBSD.org>2009-07-28 22:17:34 +0000
commitc387c551131a64b48265750ce76ec71f610832ca (patch)
treecde7dadee02b7606b1f757c66e70d4b5d71083f5
parentfac30ba8b4fd00a95fd7fb49c4e4dc1bcdf4003c (diff)
downloadFreeBSD-src-c387c551131a64b48265750ce76ec71f610832ca.zip
FreeBSD-src-c387c551131a64b48265750ce76ec71f610832ca.tar.gz
Revise header comments for vnet.h as we now implement VNET_SYSINIT, not
just VNET_DEFINE in vnet.h. Approved by: re (vimage blanket)
-rw-r--r--sys/net/vnet.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/net/vnet.h b/sys/net/vnet.h
index 8877bab..28e5793 100644
--- a/sys/net/vnet.h
+++ b/sys/net/vnet.h
@@ -28,10 +28,14 @@
*/
/*
- * This is the virtual network stack memory allocator, which provides support
- * for virtualized global variables via a special linker set, set_vnet. When
- * "options VIMAGE" isn't defined, virtualized global variables are compiled
- * as normal globals.
+ * This header file defines two sets of interfaces supporting virtualized
+ * network stacks: a virtual network stack memory allocator, which provides
+ * support for virtualized global variables via a special linker set,
+ * set_vnet, and virtualized sysinits/sysuninits, which allow constructors
+ * and destructors to be run for each network stack subsystem as virtual
+ * instances are created and destroyed. If VIMAGE isn't compiled into the
+ * kernel, virtualized global variables compile to normal global variables,
+ * and virtualized sysinits to regular sysinits.
*/
#ifndef _NET_VNET_H_
OpenPOWER on IntegriCloud