From mboxrd@z Thu Jan 1 00:00:00 1970 From: michi1@michaelblizek.twilightparadox.com (michi1 at michaelblizek.twilightparadox.com) Date: Tue, 21 Apr 2015 17:05:01 +0200 Subject: wait queues In-Reply-To: <55352BD5.9020506@mrbrklyn.com> References: <55345527.2050402@mrbrklyn.com> <20150420152352.GA4333@grml> <55352BD5.9020506@mrbrklyn.com> Message-ID: <20150421150500.GA4412@grml> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi! On 12:39 Mon 20 Apr , Ruben Safir wrote: > On 04/20/2015 11:23 AM, michi1 at michaelblizek.twilightparadox.com wrote: > > I would not recommend that. There are already functions in linux/wait.h for > > these purposes like wait_event_interruptible(). > > > can you do that in the kernel? The wait_event_interuptable creates wait > queues? No, wait_event_interuptable waits on an existing waitqueue. If you want to create a waitqueue, call init_waitqueue_head(). -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com