[patch 1/5] Staging: VME Framework for the Linux Kernel

Shawn Bohrer shawn.bohrer at gmail.com
Mon Aug 10 16:26:24 UTC 2009


On Mon, Aug 10, 2009 at 04:53:39PM +0100, Martyn Welch wrote:
> Emilio G. Cota wrote:
>> Martyn Welch wrote:
>>   
>>> Emilio G. Cota wrote:
>>>     
>>>> - semaphores? isn't it screaming for mutexes?
>>>>       
>>> The semaphores are initialized in mutex mode.
>>>     
>>
>> I know, but then please use mutexes.
>>
>>   
> I'm clearly missing something here - can you provide me with an example?

The kernel now has native mutexes so there is no need to use semaphores
as mutexes.  Take a look at:

kernel/mutex.c

--
Shawn



More information about the devel mailing list