[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CC6104B.7040204@microgate.com>
Date: Mon, 25 Oct 2010 18:18:35 -0500
From: Paul Fulghum <paulkf@...rogate.com>
To: Arnd Bergmann <arnd@...db.de>
CC: Andrew Morton <akpm@...ux-foundation.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] n_hdlc fix read and write locking
On 10/25/2010 3:31 PM, Arnd Bergmann wrote:
> Would it be possible to express the same using
> wait_event_interruptible()?
Yes if I embed an assignment in the event expression:
rc = wait_event_interruptible(&wait, (buf = get_buf()));
if (!rc)
process_buf(buf);
Is that considered acceptable?
--
Paul Fulghum
MicroGate Systems, Ltd.
=Customer Driven, by Design=
(800)444-1982
(512)345-7791 (Direct)
(512)343-9046 (Fax)
Central Time Zone (GMT -5h)
www.microgate.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists