| 119 | }; |
| 120 | |
| 121 | static int |
| 122 | mount_init(void *mem, int size, int flags) |
| 123 | { |
| 124 | struct mount *mp; |
| 125 | |
| 126 | mp = (struct mount *)mem; |
| 127 | mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); |
| 128 | mtx_init(&mp->mnt_listmtx, "struct mount vlist mtx", NULL, MTX_DEF); |
| 129 | lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); |
| 130 | mp->mnt_pcpu = uma_zalloc_pcpu(pcpu_zone_16, M_WAITOK | M_ZERO); |
| 131 | mp->mnt_ref = 0; |
| 132 | mp->mnt_vfs_ops = 1; |
| 133 | mp->mnt_rootvnode = NULL; |
| 134 | return (0); |
| 135 | } |
| 136 | |
| 137 | static void |
| 138 | mount_fini(void *mem, int size) |
nothing calls this directly
no test coverage detected