Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1627108pxb; Thu, 4 Mar 2021 16:51:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3XkEa7gEsn2NZOt709Ca0PA9LQvlbpQ64+pBLwAiXhYfxHHi4nMjiQEerQcBX9pvRcLW9 X-Received: by 2002:a05:6602:14cb:: with SMTP id b11mr5968678iow.175.1614905491516; Thu, 04 Mar 2021 16:51:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614905491; cv=none; d=google.com; s=arc-20160816; b=i5Kfo0fkuWArMkyZPgSigLcEBpbJig6pycFoXYqfzbM+01GnW3gXFgRTknkhgYjEg+ SjU181Q+a0kAztDJOX/aBLHe5Ca0bC1G+iUjpvXlZEE13p0ik0Lkriozc8BWZq4vameS ptvpIXOz1+BWgRRowVNw6RmH7LXDZZQyBqLdf+TOiXUFKfn2cJw2ifBAzKR+XFbdqax/ fYk88OmWhPgWv9MTtzrnxiA3Rzs0TOpLEN7gyFDz+ZksRKk8p9LMTWV8MGFBUCHQg2IH VgviU7NaIsr0FzotErtL8TaBvWry7GQj4HjFPz8DXWij+Z8MHIgbS2sWihx9hhj8xia+ zQsQ== 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=L+ETSEf1ZAFUSggoPbuwMmKsXjA8FmosFmIyKB/HpBM=; b=Si5Yq0v1eHZOK13niJdFg4vT+FwUH6ZVAukP4Ohm5DQ+aCe/r8rl+kWvcVcX5LBAP+ 082SgsFjt3abgIPzsCLNYZB8YvKFwpgvOj8urwkzEWVLMM4Pv6ol17d1cDmaXr6LZYQv G5fbdHdbfXIx/oH0udJaj2xEwelu5ce571+uEFyiTT/3Do7u7grMz43Sxcp84hyfLEi4 7k8gDvSQke8cmAb52DGnU01uKCj53nTrWqnza0oLuFrD4OkC+KUS6rZEALffjKgM/m4+ 6eeeHiEngbGC/maP/ZQMbD6M5lxJNVkEYusAQQus3cvANTO7uin3FMQZesDjJlIgR22x W8tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=imRIUmet; 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 g14si869808ilf.0.2021.03.04.16.51.18; Thu, 04 Mar 2021 16:51:31 -0800 (PST) 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=imRIUmet; 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 S237939AbhCDQd2 (ORCPT + 99 others); Thu, 4 Mar 2021 11:33:28 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:24953 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237837AbhCDQdQ (ORCPT ); Thu, 4 Mar 2021 11:33:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614875511; 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=L+ETSEf1ZAFUSggoPbuwMmKsXjA8FmosFmIyKB/HpBM=; b=imRIUmetSzXFWRWo+AvHzeskhoH5oMcqGZ8eXqMoaadmV0N9JW7RcJK7bYvsk4hCZaHs3l J05ohUBIBVvi1jqYg9dzmb4fTRGjzHZlQFiXmlXtG9W9maSzoZlopYqO2yvcHCxEfKJCeb rQ4SVFL+77bB4f6SVmNDdYS+r+65qDY= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-14-m8yrXV9YOZaLaYa10TOeSA-1; Thu, 04 Mar 2021 11:31:49 -0500 X-MC-Unique: m8yrXV9YOZaLaYa10TOeSA-1 Received: by mail-qv1-f72.google.com with SMTP id i1so10423360qvu.12 for ; Thu, 04 Mar 2021 08:31:49 -0800 (PST) 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=L+ETSEf1ZAFUSggoPbuwMmKsXjA8FmosFmIyKB/HpBM=; b=erHgmnT9dJGKwbV7Efbwi8qc3iiXnlTVUeFLjMw9NLbwcTRBfxe3vlCchTEUc68pWG yFzFKVKc13aVJ06Fb5WPzFayWqFg1ByPs+F3omqWKrYuRwZyn32VszFIFejzA4qJh5GJ aJduFEModPzIaSBSTAVvsQEWJpYSGG9UyMEBJ51Zv/E58hC1fT/uRwWQQ5fGNJTxnaC3 aP46vhPXnM0YlZnmz4kbhq5kIny6RkT79AG/8tir21rdTfSMc7r8FWT4b0BNtUvcREK4 2jzdYjt8/60OCXpTrgERT0UC1IzAEjXh0bhmJhJbzp+MTdlqXD+lwHIJ8mVkdMIUHrvJ vtVQ== X-Gm-Message-State: AOAM533sX5B+UlYnW+R9RUeEIuH3Z8ZJ4e6lGpfV33AF6gj5fsAoyJ5B WYnZ2AnigQjl4LUyEm/LmcN/x/ZJdq7TvuStPbNAOqIfgSSprwAjZIZYTw9szto8gGQTlL2oMLo ow5lxGNJuQjDlbc3NZHmk5Yrq X-Received: by 2002:a05:6214:1424:: with SMTP id o4mr4686692qvx.34.1614875509282; Thu, 04 Mar 2021 08:31:49 -0800 (PST) X-Received: by 2002:a05:6214:1424:: with SMTP id o4mr4686678qvx.34.1614875509092; Thu, 04 Mar 2021 08:31:49 -0800 (PST) Received: from xz-x1.redhat.com (bras-vprn-toroon474qw-lp130-25-174-95-95-253.dsl.bell.ca. [174.95.95.253]) by smtp.gmail.com with ESMTPSA id r2sm51753qti.4.2021.03.04.08.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 08:31:48 -0800 (PST) From: Peter Xu To: linux-man@vger.kernel.org Cc: Alejandro Colomar , Nadav Amit , Andrea Arcangeli , linux-kernel@vger.kernel.org, Michael Kerrisk , Mike Rapoport , Axel Rasmussen , Andrew Morton , Linux MM Mailing List , peterx@redhat.com Subject: [PATCH v2 3/4] ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs Date: Thu, 4 Mar 2021 11:31:39 -0500 Message-Id: <20210304163140.543171-4-peterx@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210304163140.543171-1-peterx@redhat.com> References: <20210304163140.543171-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..b58983fe7 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