| 775 | } |
| 776 | |
| 777 | static int __init |
| 778 | spl_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 | |
| 808 | out7: |
| 809 | spl_kstat_fini(); |
| 810 | out6: |
| 811 | spl_proc_fini(); |
| 812 | out5: |
| 813 | spl_kmem_cache_fini(); |
| 814 | out4: |
| 815 | spl_taskq_fini(); |
| 816 | out3: |
| 817 | spl_tsd_fini(); |
| 818 | out2: |
| 819 | spl_kvmem_fini(); |
| 820 | out1: |
| 821 | return (rc); |
| 822 | } |
| 823 | |
| 824 | static void __exit |
| 825 | spl_fini(void) |
nothing calls this directly
no test coverage detected