- mockfs_mtx_attr = lck_attr_alloc_init();
- mockfs_grp_attr = lck_grp_attr_alloc_init();
- mockfs_mtx_grp = lck_grp_alloc_init("mockfs-mutex", mockfs_grp_attr);
-
- /*
- * If we've failed to allocate this early in boot, something is horrendously wrong; it should be fine to
- * panic (for now).
- */
- if (!mockfs_mtx_attr || !mockfs_grp_attr || !mockfs_mtx_grp) {
- panic("mockfs_init failed to allocate lock information");
- }
-