mechanism to syncronise device access from user and kernel

From: Parav Pandit
Date: Fri Dec 05 2008 - 13:35:24 EST


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?

Regards,
Parav Pandit




--
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/