[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: init_completion, down(mutex) related question
You are right. I just mixed generic explanation and specific APIs.
Regards
Mohanlal
----- Original Message -----
From: "Jan Hudec" <bulb@xxxxxx>
To: "mohanlal jangir" <mohanlal@xxxxxxxxxxx>
Cc: "Shiv Garg" <shivg@xxxxxxxxxxx>; <kernelnewbies@xxxxxxxxxxxx>
Sent: Friday, July 02, 2004 1:19 PM
Subject: Re: init_completion, down(mutex) related question
On Fri, Jul 02, 2004 at 10:43:30 +0530, mohanlal jangir wrote:
> down and up primitives are used to acquire and release a semaphore, mutex
or
> any synchronization primitive. init_completion will initialize wait queue
Do you need to be reminded, that C is not polymorphic?
Also, mutex IS A (special case of) semaphore.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/