[lkml]   [2010]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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)

Is that considered acceptable?

Paul Fulghum
MicroGate Systems, Ltd.
=Customer Driven, by Design=
(512)345-7791 (Direct)
(512)343-9046 (Fax)
Central Time Zone (GMT -5h)

 \ /
  Last update: 2010-10-26 01:21    [W:0.053 / U:9.612 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site