vnet: Make vnet_sys[un]init() static
These two functions are intended to be used only when allocating or destroying vnet instances. No functional change intended. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37955
This commit is contained in:
parent
b2d76b52fd
commit
fb9b76e052
@ -220,6 +220,12 @@ SDT_PROBE_DEFINE2(vnet, functions, vnet_destroy, entry,
|
|||||||
SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return,
|
SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return,
|
||||||
"int");
|
"int");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Run per-vnet sysinits or sysuninits during vnet creation/destruction.
|
||||||
|
*/
|
||||||
|
static void vnet_sysinit(void);
|
||||||
|
static void vnet_sysuninit(void);
|
||||||
|
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
static void db_show_vnet_print_vs(struct vnet_sysinit *, int);
|
static void db_show_vnet_print_vs(struct vnet_sysinit *, int);
|
||||||
#endif
|
#endif
|
||||||
@ -571,7 +577,7 @@ vnet_deregister_sysuninit(void *arg)
|
|||||||
* vnet construction. The caller is responsible for ensuring the new vnet is
|
* vnet construction. The caller is responsible for ensuring the new vnet is
|
||||||
* the current vnet and that the vnet_sysinit_sxlock lock is locked.
|
* the current vnet and that the vnet_sysinit_sxlock lock is locked.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
vnet_sysinit(void)
|
vnet_sysinit(void)
|
||||||
{
|
{
|
||||||
struct vnet_sysinit *vs;
|
struct vnet_sysinit *vs;
|
||||||
@ -589,7 +595,7 @@ vnet_sysinit(void)
|
|||||||
* vnet destruction. The caller is responsible for ensuring the dying vnet
|
* vnet destruction. The caller is responsible for ensuring the dying vnet
|
||||||
* the current vnet and that the vnet_sysinit_sxlock lock is locked.
|
* the current vnet and that the vnet_sysinit_sxlock lock is locked.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
vnet_sysuninit(void)
|
vnet_sysuninit(void)
|
||||||
{
|
{
|
||||||
struct vnet_sysinit *vs;
|
struct vnet_sysinit *vs;
|
||||||
|
@ -360,12 +360,6 @@ struct vnet_sysinit {
|
|||||||
SYSUNINIT(vnet_uninit_ ## ident, subsystem, order, \
|
SYSUNINIT(vnet_uninit_ ## ident, subsystem, order, \
|
||||||
vnet_deregister_sysuninit, &ident ## _vnet_uninit)
|
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.
|
* Interfaces for managing per-vnet constructors and destructors.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user