Re: How to do concurrent control when accessing many registers by ioctl???

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

 



2009/4/10 yihect <yihect@xxxxxxx>:
> Hi, all:
>     Im my device, there are many registers resider in several banks, these
> registers are all

Banks?? What is meant by that? Can you explain?

> accessed by one IOCTL cmd in my driver. And there are 2 or 3 tasks will
> access these registers simultaneously in app layer.
>
>     So, my question is: Is there some common model to do this kind of
> concurrent control? Is there some sample as reference?

Use mutexes if your user space app can tolerate to block.

HTH

Thanks,
> Any suggestion will be welcome also.
>



-- 
Pradeep

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux