MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spl_init

Function spl_init

freebsd/contrib/openzfs/module/os/linux/spl/spl-generic.c:777–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777static int __init
778spl_init(void)
779{
780 int rc = 0;
781
782 bzero(&p0, sizeof (proc_t));
783 spl_random_init();
784
785 if ((rc = spl_kvmem_init()))
786 goto out1;
787
788 if ((rc = spl_tsd_init()))
789 goto out2;
790
791 if ((rc = spl_taskq_init()))
792 goto out3;
793
794 if ((rc = spl_kmem_cache_init()))
795 goto out4;
796
797 if ((rc = spl_proc_init()))
798 goto out5;
799
800 if ((rc = spl_kstat_init()))
801 goto out6;
802
803 if ((rc = spl_zlib_init()))
804 goto out7;
805
806 return (rc);
807
808out7:
809 spl_kstat_fini();
810out6:
811 spl_proc_fini();
812out5:
813 spl_kmem_cache_fini();
814out4:
815 spl_taskq_fini();
816out3:
817 spl_tsd_fini();
818out2:
819 spl_kvmem_fini();
820out1:
821 return (rc);
822}
823
824static void __exit
825spl_fini(void)

Callers

nothing calls this directly

Calls 15

bzeroFunction · 0.85
spl_random_initFunction · 0.85
spl_kvmem_initFunction · 0.85
spl_tsd_initFunction · 0.85
spl_taskq_initFunction · 0.85
spl_kmem_cache_initFunction · 0.85
spl_proc_initFunction · 0.85
spl_kstat_initFunction · 0.85
spl_zlib_initFunction · 0.85
spl_kstat_finiFunction · 0.85
spl_proc_finiFunction · 0.85
spl_kmem_cache_finiFunction · 0.85

Tested by

no test coverage detected