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]
Message-Id: <20110119142942.e4898861.akpm@linux-foundation.org>
Date:	Wed, 19 Jan 2011 14:29:42 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Davide Libenzi <davidel@...ilserver.org>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Shawn Bohrer <shawn.bohrer@...il.com>
Subject: Re: [patch 2/2] fix compiler warning and optimize the non-blocking
 path

On Sat, 15 Jan 2011 11:43:45 -0800 (PST)
Davide Libenzi <davidel@...ilserver.org> wrote:

> +/**
> + * ep_poll - Retrieves ready events, and delivers them to the caller supplied
> + *           event buffer.
> + *
> + * @ep: Pointer to the eventpoll context.
> + * @events: Pointer to the userspace buffer where the ready events should be
> + *          stored.
> + * @maxevents: Size (in terms of number of events) of the caller event buffer.
> + * @timeout: Maximum timeout for the ready events fetch operation, in
> + *           milliseconds. If the @timeout is zero, the function will not block,
> + *           while if the @timeout is less than zero, the function will block
> + *           until at least one event has been retrieved (or an error
> + *           occurred).

Ah, that's what timeout<0 means.

My `man epoll_wait' says "a timeout of -1 makes epoll_wait() wait
indefinitely", whereas the implementation accepts any -ve value.

So we lost the ability to later make -[2..MAX_INT] meaningful in some
new way.  Oh well.

> + * Returns: Returns the number of ready events which have been fetched, or an
> + *          error code, in case of error.
> + */
--
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