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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 17 May 2005 11:39, [email protected] 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux