lkml.org 
[lkml]   [2016]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 0/3] UART slave device bus
> I meant "Either some function similar to userspace's poll() is
> needed, ...". Something like uart_dev_wait_for_rx()

You can't really do that - it might never return and then how do you want
to handle timeouts and cleanups

> Alternatively the rx function could be a callback, that
> is called when there is new data.

That's what the existing API gives you as an ldisc, it can't be immediate
in many cases however but must be buffered.

> > I'm assuming the only immediate consumers are in-kernel.
>
> Yes, but the driver should be notified about incoming data.

Alan

\
 
 \ /
  Last update: 2016-09-17 09:57    [W:0.197 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site