lkml.org 
[lkml]   [2008]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: mechanism to syncronise device access from user and kernel
Date
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?

This doesn't seem like the best idea in the first place.. certainly not
if unprivileged processes can get access to the registers, as there's no
way to require them to follow the synchronization process. Generally a
given set of registers should be driven by a kernel driver or a
userspace process, not both.



\
 
 \ /
  Last update: 2008-12-06 02:13    [W:0.295 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site