const char *str);
int proc_dir_entries(struct proc_dir_entry *root);
-int proc_init(void);
-void proc_fini(void);
+int spl_proc_init(void);
+void spl_proc_fini(void);
#endif /* SPL_PROC_H */
extern int spl_debug_clear_buffer(void);
extern int spl_debug_mark_buffer(char *text);
-int debug_init(void);
-void debug_fini(void);
+int spl_debug_init(void);
+void spl_debug_fini(void);
#endif /* SPL_DEBUG_INTERNAL_H */
hrtime_t stop_time; /* previous event stop time */
} kstat_timer_t;
-int kstat_init(void);
-void kstat_fini(void);
+int spl_kstat_init(void);
+void spl_kstat_fini(void);
extern kstat_t *__kstat_create(const char *ks_module, int ks_instance,
const char *ks_name, const char *ks_class,
extern void tsd_destroy(uint_t *);
extern void tsd_exit(void);
-int tsd_init(void);
-void tsd_fini(void);
+int spl_tsd_init(void);
+void spl_tsd_fini(void);
#endif /* _SPL_TSD_H */
extern int z_uncompress(void *dest, size_t *destLen, const void *source,
size_t sourceLen);
-int zlib_init(void);
-void zlib_fini(void);
+int spl_zlib_init(void);
+void spl_zlib_fini(void);
#endif /* SPL_ZMOD_H */
}
int
-debug_init(void)
+spl_debug_init(void)
{
int rc, max = spl_debug_mb;
}
void
-debug_fini(void)
+spl_debug_fini(void)
{
trace_fini();
}
{
int rc = 0;
- if ((rc = debug_init()))
+ if ((rc = spl_debug_init()))
return rc;
if ((rc = spl_kmem_init()))
if ((rc = spl_vn_init()))
SGOTO(out5, rc);
- if ((rc = proc_init()))
+ if ((rc = spl_proc_init()))
SGOTO(out6, rc);
- if ((rc = kstat_init()))
+ if ((rc = spl_kstat_init()))
SGOTO(out7, rc);
- if ((rc = tsd_init()))
+ if ((rc = spl_tsd_init()))
SGOTO(out8, rc);
- if ((rc = zlib_init()))
+ if ((rc = spl_zlib_init()))
SGOTO(out9, rc);
/*
SPL_META_VERSION, SPL_DEBUG_STR, (unsigned int) spl_hostid);
SRETURN(rc);
out10:
- zlib_fini();
+ spl_zlib_fini();
out9:
- tsd_fini();
+ spl_tsd_fini();
out8:
- kstat_fini();
+ spl_kstat_fini();
out7:
- proc_fini();
+ spl_proc_fini();
out6:
spl_vn_fini();
out5:
out2:
spl_kmem_fini();
out1:
- debug_fini();
+ spl_debug_fini();
printk(KERN_NOTICE "SPL: Failed to Load Solaris Porting Layer v%s%s"
", rc = %d\n", SPL_META_VERSION, SPL_DEBUG_STR, rc);
printk(KERN_NOTICE "SPL: Unloaded module v%s%s\n",
SPL_META_VERSION, SPL_DEBUG_STR);
- zlib_fini();
- tsd_fini();
- kstat_fini();
- proc_fini();
+ spl_zlib_fini();
+ spl_tsd_fini();
+ spl_kstat_fini();
+ spl_proc_fini();
spl_vn_fini();
spl_taskq_fini();
spl_rw_fini();
spl_mutex_fini();
spl_kmem_fini();
- debug_fini();
+ spl_debug_fini();
}
/* Called when a dependent module is loaded */
EXPORT_SYMBOL(__kstat_delete);
int
-kstat_init(void)
+spl_kstat_init(void)
{
SENTRY;
spin_lock_init(&kstat_lock);
}
void
-kstat_fini(void)
+spl_kstat_fini(void)
{
SENTRY;
ASSERT(list_empty(&kstat_list));
}
int
-proc_init(void)
+spl_proc_init(void)
{
int rc = 0;
SENTRY;
}
void
-proc_fini(void)
+spl_proc_fini(void)
{
SENTRY;
}
EXPORT_SYMBOL(tsd_exit);
-int tsd_init(void)
+int
+spl_tsd_init(void)
{
SENTRY;
SRETURN(0);
}
-void tsd_fini(void)
+void
+spl_tsd_fini(void)
{
SENTRY;
tsd_hash_table_fini(tsd_hash_table);
}
EXPORT_SYMBOL(z_uncompress);
-int zlib_init(void)
+int
+spl_zlib_init(void)
{
int size;
SENTRY;
SRETURN(0);
}
-void zlib_fini(void)
+void
+spl_zlib_fini(void)
{
SENTRY;
kmem_cache_destroy(zlib_workspace_cache);