int slp_global_init(void) { int result; result = ccc_global_init(&slp_device_type); return result; }
/** * A mutex serializing calls to vvp_inode_fini() under extreme memory * pressure, when environments cannot be allocated. */ int vvp_global_init(void) { int result; result = lu_kmem_init(vvp_caches); if (result == 0) { result = ccc_global_init(&vvp_device_type); if (result != 0) lu_kmem_fini(vvp_caches); } return result; }