Lines Matching refs:ls_device
344 if (ls->ls_device.name) in dlm_device_register()
349 ls->ls_device.name = kzalloc(len, GFP_NOFS); in dlm_device_register()
350 if (!ls->ls_device.name) in dlm_device_register()
353 snprintf((char *)ls->ls_device.name, len, "%s_%s", name_prefix, in dlm_device_register()
355 ls->ls_device.fops = &device_fops; in dlm_device_register()
356 ls->ls_device.minor = MISC_DYNAMIC_MINOR; in dlm_device_register()
358 error = misc_register(&ls->ls_device); in dlm_device_register()
360 kfree(ls->ls_device.name); in dlm_device_register()
364 ls->ls_device.name = NULL; in dlm_device_register()
375 if (!ls->ls_device.name) in dlm_device_deregister()
378 misc_deregister(&ls->ls_device); in dlm_device_deregister()
379 kfree(ls->ls_device.name); in dlm_device_deregister()
424 error = ls->ls_device.minor; in device_create_lockspace()