From patchwork Mon Aug 22 13:02:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 12950637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 948E2C28D13 for ; Mon, 22 Aug 2022 13:33:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F7E26B0074; Mon, 22 Aug 2022 09:33:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A7B28D0001; Mon, 22 Aug 2022 09:33:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3708B6B0078; Mon, 22 Aug 2022 09:33:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 286A16B0074 for ; Mon, 22 Aug 2022 09:33:29 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E40B61412CD for ; Mon, 22 Aug 2022 13:33:28 +0000 (UTC) X-FDA: 79827320496.15.C7CB768 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by imf07.hostedemail.com (Postfix) with ESMTP id 0CB50417F5 for ; Mon, 22 Aug 2022 13:29:26 +0000 (UTC) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 47F045FD66; Mon, 22 Aug 2022 15:04:37 +0200 (CEST) From: Rolf Eike Beer To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] mm: pagewalk: add api documentation for walk_page_range_novma() Date: Mon, 22 Aug 2022 15:02:36 +0200 Message-ID: <8991525.CDJkKcVGEf@devpool047> Organization: emlix GmbH In-Reply-To: <3200642.44csPzL39Z@devpool047> References: <3200642.44csPzL39Z@devpool047> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; spf=pass (imf07.hostedemail.com: domain of eb@emlix.com designates 136.243.223.33 as permitted sender) smtp.mailfrom=eb@emlix.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661174969; a=rsa-sha256; cv=none; b=ChnGRvGR7xYjeWT1055X9WfrJJ6AuKFd8jnamyxtUoPr7SeFvNVSe+duJymYl9vmxGJgNz 8XazE23piY6wfLhIBmhevaxaayQKd/a7CRX1w0IuSLLCoeGiQfwMcVoXyznzKIKgXGZkSi ZaeDHEdLy2ABPn8MQ0oH1NdaLqJuSBE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661174969; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e9mCPQzaBZvz/Jcy6Z8FadLXJubHrstfD9yd734LYp4=; b=bUKpjMmXu+Lmx4HvmE4f9kSTrrfrFgqZPXpuaQNvTP+SwdtP+hhTyIT8gFqJ+ZKG5So5k/ W0ZLlBxA3ydaQW8gCeAbdQP8laZ8roZIcyK67gPVFjtyLpqnD4YRPVwA3trRo1MGRaSZL6 xNG/qhpsZhObqnQikmQbdtl60sW3vPs= Authentication-Results: imf07.hostedemail.com; dkim=none; spf=pass (imf07.hostedemail.com: domain of eb@emlix.com designates 136.243.223.33 as permitted sender) smtp.mailfrom=eb@emlix.com; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 0CB50417F5 X-Stat-Signature: cgn58wmogw3k68c58jw93uwxzmde6fos X-HE-Tag: 1661174966-955245 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Signed-off-by: Rolf Eike Beer --- mm/pagewalk.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index a06eb100fe4e..dc3c850cd148 100644 --- a/mm/pagewalk.c +++ b/mm/pagewalk.c @@ -493,7 +493,15 @@ int walk_page_range(struct mm_struct *mm, unsigned long start, return 0; } -/* +/** + * walk_page_range_novma - walk a range of pagetables not backed by a vma + * @mm: mm_struct representing the target process of page table walk + * @start: start address of the virtual address range + * @end: end address of the virtual address range + * @ops: operation to call during the walk + * @pgd: pgd to walk if different from mm->pgd + * @private: private data for callbacks' usage + * * Similar to walk_page_range() but can walk any page tables even if they are * not backed by VMAs. Because 'unusual' entries may be walked this function * will also not lock the PTEs for the pte_entry() callback. This is useful for