lkml.org 
[lkml]   [2015]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: character driver - poll() timeout
From
On Tue, Oct 27, 2015 at 3:56 PM, Muni Sekhar <munisekharrms@gmail.com> wrote:
> On Tue, Oct 27, 2015 at 1:41 PM, Clemens Ladisch <clemens@ladisch.de> wrote:
>> Muni Sekhar wrote:
>>> Is it possible to print the timeout value in character driver poll() API?
>>
>> No. Your driver's poll callback never waits.
>>
>> Why do you think you need this value?
>
> I need to find out when exactly driver's poll callback returned timeout.

Kernel's poll() is just the generic backend for any kind of polling
API. Like select(), epoll or poll().
If your driver needs to know the timeout, it is broken by design.


--
Thanks,
//richard


\
 
 \ /
  Last update: 2015-10-27 16:41    [W:0.051 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site