From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AE0D4A1E1D for ; Mon, 31 Aug 2026 14:31:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788186715; cv=none; b=DTDQuJCYw+tOF9TgcviRh6AHmFxsCl+VkVlStIjlbJUi6ozXP3+v7Tm2HaxVR/T1vV9gq6WSLxqAbMeQUd1x8+E3dCQtmOhlstXJSVjSVC6e4HtK8fdUu39BYNp2oQCqHtk7ptqdaYNbdG1Uwiu58C4Y41ePQg08yxo1v8PD6Yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788186715; c=relaxed/simple; bh=ptU1ZlwnH6vGoRUuvyLN3kutz8OyEqpRWrw+X4HpfRg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gfegO348jD2edUlySWv1nEbhiDatMaNyuT+CC2HpDB61qdkkQ9Ywhlf368DwHdaeQvrb9QlQWenCgFBGx3Cj8upDtx0PKLff3H/6gY0EcvIuaGUsQCeiQSr5cZyD6N9zjfH4M6qomPWKZaw3M2ZqEt16WWwBnYPLbTwtUPQIyAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FWWzjw5z; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FWWzjw5z" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-499b2981a7bso40013955e9.3 for ; Mon, 31 Aug 2026 07:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788186712; x=1788791512; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=0URnMyQaQtd5j8PK7iDRRW4R8eCuSdT+xJY+FbyXAg8=; b=FWWzjw5zdYa5hemg0Bz508VnkzSVUhgGO8Ud33ktqXwJ1yzmBZmVFH4pD8jqIx+Mro LHv8ds1c2BCOVZWQpE0z5MpR8wEKZ3NmLg9SZRGdCrKg3HJ0npHbjOSNX3GkVJz5V2o5 yoKUMAe4Llps/svc1uOawDThQD8jiEtLesGMP0xkYOvaW27AEehLgN8S9JamztSLHjpa YhKll6vpaZFXjTagIidbocRnPB/u8shii+qanH73UDHdaYH9TdDYEfwwxwlbElHgbD8z Sd4GyjZR07kOUly9ppEu6F6RiuFw8Xj2Vxln+YrvlqJws9i4AQ4gr/BV0MSW+DSztHjI 9eWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788186712; x=1788791512; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0URnMyQaQtd5j8PK7iDRRW4R8eCuSdT+xJY+FbyXAg8=; b=cnrCPlwfnECqVizyWiGVhsWEY9cCkgFR4MPmaj79+RqfNtxfV+nEO3Bn4uNhrQ8IoR 2i6WX/4l0Tog/cHn8CWu4wLGbiFn1yD8K+9YIozN1DqEYX52MWII8tR9LWAqSppSV1i+ JNrV9esF3ihwto5Y9LT2c1Jx0JWW1SDAtI8hcNGZ92nWKKjALjNfmDpK7kaVgW/wxBiJ KO0dmy1p5Jt+MyK/3EqDLPVPLgGz6yRMr0ARp3FbL7qVn628Sap+y3QEWBwR2arW62Hq IZAUHIfvj6whYlHszxwiAmDQcjScHfPlSbmhgzJyExbLY1cQYWYsUKn3zpXHxpegUQop RrdQ== X-Forwarded-Encrypted: i=1; AHgh+RrkslhpYZsBVd4/7QTp6GDARB9NY2UQ2fX4NNTTjaHv8qMunSaxOYZE8xlkmd7LXrJU+E4i/ytrJHj5B5I=@vger.kernel.org X-Gm-Message-State: AFuF++klLnA0jB6bx8wq5wKhYjEdz6Jz+7W2hkPCL4Z+xr+ZFcNLvKfe Xr3GHnPotu6KrGzhUzWKA5NlCOGuHFRm4Gd8774dYdLeikwAljJGSH9q X-Gm-Gg: AR+sD13exYzXjvo4atdyVlfjaaDSc5rAMuqYVojz0CygEKtwvapU3cdCTtII1Kk3Q4P GzMSBd28ue4xnmDdfAM1UYf9RhUGKXHq3ZYsNxsHhfn6XVHv3vh4Rxbn0UJUvE18EHNjs8cDok0 u0fhC85U1dP0+CdxtsU+4RlyVs1xJOx6PStlldi0n3JdVKhemuz3l4QJjUd+UOBeaj8cUKNqUfj jMQJc8gaOYFGNhk+f/OMrtYCpKUwQrJ1ByFdxJEhseTBtSHibBC67FX/GzBe4XprBwBfVzBh3kM vdxAHTEJDFS+blSvPVS9MeRUq+HK4vpuOCANNJVmeaDtoW431KrcMcX7/jvFUZvW5MdqX7EZT2w 7xlL0gDlNMzyjfGxOj9Nyw77G+dGIC0reyT7PigsmBBwmluTJV6/YXGdcFZGuiPzsDb2cxu8zZ0 5dp9vUxYvBp3zuaoNVSHbsyeBwwXZWrg63QsPK2kboPTX7OUCYPTsATImM+0+HGdvrblNvxf6zH oGB4sQfxWi7UWj9FV04AkPt X-Received: by 2002:a05:600c:a4a:b0:499:7a15:fcec with SMTP id 5b1f17b1804b1-49cdc567061mr21947265e9.13.1788186712229; Mon, 31 Aug 2026 07:31:52 -0700 (PDT) Received: from unix.. (244.red-81-44-253.staticip.rima-tde.net. [81.44.253.244]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49b945816f2sm344786125e9.8.2026.08.31.07.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 07:31:50 -0700 (PDT) From: =?UTF-8?q?Iv=C3=A1n=20Ezequiel=20Rodriguez?= To: Jonathan Corbet , Bartosz Golaszewski Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Jason Wang , Sumit Semwal , =?UTF-8?q?Iv=C3=A1n=20Ezequiel=20Rodriguez?= Subject: [PATCH 1/7] docs: futex2: fix documented errno names for futex_waitv Date: Mon, 31 Aug 2026 11:31:19 -0300 Message-ID: <20260831143125.151360-2-ivanrwcm25@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260831143125.151360-1-ivanrwcm25@gmail.com> References: <20260831143125.151360-1-ivanrwcm25@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The documentation cited -EAGAIN and -ETIMEOUT, but futex_waitv() returns -EWOULDBLOCK on value mismatch and -ETIMEDOUT when the timeout expires, per kernel/futex/waitwake.c. Signed-off-by: Iván Ezequiel Rodriguez --- Documentation/userspace-api/futex2.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/userspace-api/futex2.rst b/Documentation/userspace-api/futex2.rst index 9693f47a7e62..615616305c57 100644 --- a/Documentation/userspace-api/futex2.rst +++ b/Documentation/userspace-api/futex2.rst @@ -51,10 +51,10 @@ future extension. For each entry in ``waiters`` array, the current value at ``uaddr`` is compared to ``val``. If it's different, the syscall undo all the work done so far and -return ``-EAGAIN``. If all tests and verifications succeeds, syscall waits until +return ``-EWOULDBLOCK``. If all tests and verifications succeeds, syscall waits until one of the following happens: -- The timeout expires, returning ``-ETIMEOUT``. +- The timeout expires, returning ``-ETIMEDOUT``. - A signal was sent to the sleeping task, returning ``-ERESTARTSYS``. - Some futex at the list was woken, returning the index of some waked futex. -- 2.43.0