示例#1
0
int slp_global_init(void)
{
        int result;

        result = ccc_global_init(&slp_device_type);
        return result;
}
示例#2
0
文件: vvp_dev.c 项目: nemumu/linux
/**
 * 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;
}