Re: mechanism to syncronise device access from user and kernel

From: Matthew Garrett
Date: Sat Dec 06 2008 - 07:40:50 EST

On Fri, Dec 05, 2008 at 10:28:27AM -0800, Parav Pandit wrote:
> Hi,
> I have a device whose registers are accessed by driver as well as user space application via mmap() area.
> How to synchronize the access (avoid race condition) between user space driver and kernel mode driver, in single CPU and multi-CPU systems?

Rewrite userspace to use the kernel driver?

Matthew Garrett | mjg59@xxxxxxxxxxxxx
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at