lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 27 Oct 2015 16:20:10 +0100
From:	Richard Weinberger <richard.weinberger@...il.com>
To:	Muni Sekhar <munisekharrms@...il.com>
Cc:	Clemens Ladisch <clemens@...isch.de>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: character driver - poll() timeout

On Tue, Oct 27, 2015 at 3:56 PM, Muni Sekhar <munisekharrms@...il.com> wrote:
> On Tue, Oct 27, 2015 at 1:41 PM, Clemens Ladisch <clemens@...isch.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
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ