[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cfd18e0f0902041549t393c76d0s635b5e8c17fee2d1@mail.gmail.com>
Date: Thu, 5 Feb 2009 12:49:31 +1300
From: Michael Kerrisk <mtk.manpages@...glemail.com>
To: Ulrich Drepper <drepper@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Davide Libenzi <davidel@...ilserver.org>,
linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
linux-api@...r.kernel.org
Subject: Re: [patch/rfc] eventfd semaphore-like behavior
On Thu, Feb 5, 2009 at 12:45 PM, Ulrich Drepper <drepper@...il.com> wrote:
> On Wed, Feb 4, 2009 at 3:05 PM, Andrew Morton <akpm@...ux-foundation.org> wrote:
>> How would you recommend that userspace determine whether its kernel
>> supports this feature, bearing in mind that someone might backport this
>> patch into arbitrarily earlier kernel versions?
>
> fd = eventfd2 (CNT, EFD_SEMAPHORE);
> if (fd == -1 && errno == EINVAL)
> puts("cannot handled EFD_SEMAPHORE");
Crossed mails. Ulrich put the point more succinctly.
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
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