Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3780793pxf; Mon, 22 Mar 2021 15:10:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAGviMXxHfqqivvVcR3ZENcGo39/myZzU0V9IYoHdeePsJiJBIiP/JBqt4hJ4QHGNbA6ju X-Received: by 2002:a05:6402:2d0:: with SMTP id b16mr1789879edx.194.1616451033835; Mon, 22 Mar 2021 15:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616451033; cv=none; d=google.com; s=arc-20160816; b=oPQcZZPNg0nRb1A88OhXbtcHxSQ3GHsKqQKL/x1NMFjhlOP1+yzZAXrgTDjFu8l6Yb NDkyMg4Sp57/9qgAxaGPTzoXEmg4/f3w/qLfQWHp79wPIvPN2cZ3Lkcq2+IXpmOVfDKu u7WmYVAoBSMA3oPAytK/SPXwtf4Cl8utFSXHgKEKQN4s7vpQr7/hvCchaPobeJyJ4UHm tyCDYL5kpCDoTu+WxOSQOkGLoouFmC+2TXDVskEQ5TjV8GhGe/jCIXoD4L3QKw4zt2gH dMZuPQTN1mG8Gahj4sTf3rRP4ggycnLB4Mhy+KfxwlyFv56RjGyCVGxTeGuWdR9ssZXG GwyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BRu817/U099Z69O52DlP7850OjT0QzngDMzivy9vMy0=; b=ULdGFbkjb0tzKyP3P7JqUiXov4Sr7TLDFC/MBLm2EIC03i4fwE+SuY6mMvTyEBAwRZ 7SVd0Lme5PrAwb1R9uTD2n57rFKbHFmgYmGIBZKzZ4rXAHzxWLodTcpTOQTXdMFa4oM4 ExMzn5olWLF28l+bkPNN/lHvN0MtJ9oYbSdaqSTOZm3e0AQzdVeficoASCc2zbTguUTC LLPl8/eoy57gF2YiSHmhmIzQpYL0Ocn6ASKM66URCM+0kA/gLkl3qN2QfMS0a1RulGzM Cf5qRu2uzOh5h69pQYagtYYuZQs8YAO3CpmTTaOzy8nRev4HqA4IhNdmB+hsQVG8fZBZ Jkpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PDnc5qw1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si12515436eje.591.2021.03.22.15.10.11; Mon, 22 Mar 2021 15:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PDnc5qw1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbhCVWJN (ORCPT + 99 others); Mon, 22 Mar 2021 18:09:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:29967 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhCVWI6 (ORCPT ); Mon, 22 Mar 2021 18:08:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616450937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BRu817/U099Z69O52DlP7850OjT0QzngDMzivy9vMy0=; b=PDnc5qw1tA2ISKxWpX/qqR1Mbm1nDU1nV1XcgydT7JQD3fRJncnSWscIf6ZzPdViX7CBLJ 0fyB9dLFtHl4OQibjMn9oQbn0BAbjrlkQRZ7AZmlJbTJILZEBX1EYUt6qJ2b+sZ4byAJf1 xDG0jZ/YACVyR5mHxVYmcR9ASrxaaKQ= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-486-9W-Rrwj3PyuswS-SoIzAGA-1; Mon, 22 Mar 2021 18:08:56 -0400 X-MC-Unique: 9W-Rrwj3PyuswS-SoIzAGA-1 Received: by mail-qv1-f70.google.com with SMTP id l7so356368qvz.19 for ; Mon, 22 Mar 2021 15:08:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BRu817/U099Z69O52DlP7850OjT0QzngDMzivy9vMy0=; b=lZaZImEtDM2beoAMwb91R91qyzVjxHgTqn6kJwfMPSki2UQdqYBaMd4d4rdtW3cCc8 I0pd+y3yqLEPIWadHp9ycZHDyFstkb+94knWPGRqdCkO2dKHj+gU7xtUSJ5TnmllfkXI KqpjUJIV3m86+y3jQJXirHcx6V8W/rUQmnoTIaGWDWRyVJc5CRziVlb4THx+jtnvdAnl AnUNT4zki/sYZRh8yAYgm1SfGcu5oWO83b59Sh91pEYiMrqTRO8E0AmgndN/f0G3rXWd qAgmDkN8+0W0HiYYQLoPjNTgup68yaZVmRBdaoFjYx9pXRETrxZWg5P1K/9Ioe8WWHHY VYog== X-Gm-Message-State: AOAM532sh3CIiFsg+6m9I+BfLlrr6QZb7WvMy4kNGCe9SXgVRm8NtVVk HaytsX11OAaLFbKyqH/ntLvdzktFlCfQ+aToTSUGNPrtAc6Pe3Jc0rfl3boMJVKOKHgwZFw0HjX UPPoviigqHHigpVrd4zFQNGXO X-Received: by 2002:a0c:8365:: with SMTP id j92mr1838971qva.19.1616450935865; Mon, 22 Mar 2021 15:08:55 -0700 (PDT) X-Received: by 2002:a0c:8365:: with SMTP id j92mr1838955qva.19.1616450935685; Mon, 22 Mar 2021 15:08:55 -0700 (PDT) Received: from xz-x1.redhat.com (bras-base-toroon474qw-grc-82-174-91-135-175.dsl.bell.ca. [174.91.135.175]) by smtp.gmail.com with ESMTPSA id x1sm9627850qtr.97.2021.03.22.15.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 15:08:54 -0700 (PDT) From: Peter Xu To: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Andrea Arcangeli , Mike Rapoport , Axel Rasmussen , Alejandro Colomar , peterx@redhat.com, Michael Kerrisk , Nadav Amit , Andrew Morton Subject: [PATCH v4 3/4] ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs Date: Mon, 22 Mar 2021 18:08:47 -0400 Message-Id: <20210322220848.52162-4-peterx@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210322220848.52162-1-peterx@redhat.com> References: <20210322220848.52162-1-peterx@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UFFD_FEATURE_THREAD_ID is supported in Linux 4.14. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 47ae5f473..d4a8375b8 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -208,6 +208,11 @@ signal will be sent to the faulting process. Applications using this feature will not require the use of a userfaultfd monitor for processing memory accesses to the regions registered with userfaultfd. +.TP +.BR UFFD_FEATURE_THREAD_ID " (since Linux 4.14)" +If this feature bit is set, +.I uffd_msg.pagefault.feat.ptid +will be set to the faulted thread ID for each page fault message. .PP The returned .I ioctls -- 2.26.2