Re: patch dlm-device-interface.patch added to -mm tree

From: Alexey Dobriyan
Date: Tue May 17 2005 - 12:23:44 EST


On Tuesday 17 May 2005 11:39, akpm@xxxxxxxx wrote:
> This is a separate module from the dlm. It exports the dlm api to user space
> through a misc device. Applications use a library (libdlm) which communicates
> with the kernel through this device.

> --- /dev/null
> +++ 25-akpm/drivers/dlm/device.c

> +static struct lock_info *get_lockinfo(uint32_t lockid)
> +{
> + struct lock_info *li;
> +
> + read_lock(&lockinfo_lock);
> + li = idr_find(&lockinfo_idr, lockid);
> + read_lock(&lockinfo_lock);
^^^^^^^^^
> +
> + return li;
> +}

read_unlock ?

> +int __init dlm_device_init(void)
> +{

> + printk(KERN_ERR "dlm: misc_register failed for control device");

device\n
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/