From 92ee1564811bddfaae479d790ec10397db64481e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 25 Apr 2012 11:04:51 +1000 Subject: [PATCH] eventfd-change-int-to-__u64-in-eventfd_signal-fix update interface documentation Cc: Davide Libenzi Cc: Sha Zhengju Signed-off-by: Andrew Morton --- fs/eventfd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index f570e7aa06d6..d81b9f654086 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -46,10 +46,8 @@ struct eventfd_ctx { * value, and we signal this as overflow condition by returining a POLLERR * to poll(2). * - * Returns @n in case of success, a non-negative number lower than @n in case - * of overflow, or the following error codes: - * - * -EINVAL : The value of @n is negative. + * Returns the amount by which the counter was incrememnted. This will be less + * than @n if the counter has overflowed. */ __u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n) { -- 2.39.5