Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142174795
D37955.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37955.diff
View Options
diff --git a/sys/net/vnet.h b/sys/net/vnet.h
--- a/sys/net/vnet.h
+++ b/sys/net/vnet.h
@@ -360,12 +360,6 @@
SYSUNINIT(vnet_uninit_ ## ident, subsystem, order, \
vnet_deregister_sysuninit, &ident ## _vnet_uninit)
-/*
- * Run per-vnet sysinits or sysuninits during vnet creation/destruction.
- */
-void vnet_sysinit(void);
-void vnet_sysuninit(void);
-
/*
* Interfaces for managing per-vnet constructors and destructors.
*/
diff --git a/sys/net/vnet.c b/sys/net/vnet.c
--- a/sys/net/vnet.c
+++ b/sys/net/vnet.c
@@ -220,6 +220,12 @@
SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return,
"int");
+/*
+ * Run per-vnet sysinits or sysuninits during vnet creation/destruction.
+ */
+static void vnet_sysinit(void);
+static void vnet_sysuninit(void);
+
#ifdef DDB
static void db_show_vnet_print_vs(struct vnet_sysinit *, int);
#endif
@@ -571,7 +577,7 @@
* vnet construction. The caller is responsible for ensuring the new vnet is
* the current vnet and that the vnet_sysinit_sxlock lock is locked.
*/
-void
+static void
vnet_sysinit(void)
{
struct vnet_sysinit *vs;
@@ -589,7 +595,7 @@
* vnet destruction. The caller is responsible for ensuring the dying vnet
* the current vnet and that the vnet_sysinit_sxlock lock is locked.
*/
-void
+static void
vnet_sysuninit(void)
{
struct vnet_sysinit *vs;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 7:50 PM (7 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27698385
Default Alt Text
D37955.diff (1 KB)
Attached To
Mode
D37955: vnet: Make vnet_sys[un]init() static
Attached
Detach File
Event Timeline
Log In to Comment