Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3096876pxb; Thu, 10 Feb 2022 12:09:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKcWmRwczR2bjp93rkEbKMsNuiyOlYSIELIwghO9JgRmxVxSXS1yczbClXHZaMX2TL4dfI X-Received: by 2002:a17:903:41ce:: with SMTP id u14mr7986239ple.49.1644523762753; Thu, 10 Feb 2022 12:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644523762; cv=none; d=google.com; s=arc-20160816; b=ZGxpXXPqYYYuHUsTzammQ8g5YkSDRxE7o+aBQGnEJZAmtqtkLZeVKA8SqwYbP14ZHO To73KPdoX5uIMJ2ld0gxybjh88czZJvmTRJDjdXWbGf5k8JnTyvjAHwpLT7U3dyXve55 fSqhdKnDxPHsZWMhg8oy4yowBZy/ejsGtqleOKD1nClUNIYITcvRzUdfvXqXETzLFMW+ A01+w9TuTXUjraHTc0w3LYLWSAc0t4g5RyJIc+6DWMM8B8642iYKa9zksWCyMZ/++vNr 41JOOwGTK3d5asZkvM9AC5OEMDFupc0nsvFsQMbE8zhrhXpDyQTfEm3dAfrVPyIJhwc0 p6PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:sender:dkim-signature; bh=VFvt2qkldnELMoC2bjs+OiTFLeMglGyEe/KOlRSrFPg=; b=MVdJJQsQSvgrZCukJjIOR1/mmUze5AP8fRQaLA/VJrZNFi9zyNrHs4rOE3ULGSAt89 eM4B4Tn4ZSFm0UyhsRQnJqfdO0ODN7cyeN2wa5BNs/g2ElCjAaHH3aDmukTDdqKc8IHl fcwNMamZXpyDf9nXWXvbGBrbY3hAB96jwGefTfzxm/erLs1gg1w3EDR1l6ccqdrv4m4x JUnNQkEnDgC/d+8Ij7cLhu8G0EsZ4CdWB4c9FPx5oczV8MO0kr0RE+HVmMZBJpBmSinJ P9UlE50qcnm2V5fE5HEvynNFF3mP3CE7PmJj5bNFD7zlywNSnJRJFyZuguIMNUzV9fq2 jHbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Mt+K4f4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16si3117611plh.154.2022.02.10.12.09.09; Thu, 10 Feb 2022 12:09:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Mt+K4f4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343864AbiBJTRb (ORCPT + 99 others); Thu, 10 Feb 2022 14:17:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343850AbiBJTR3 (ORCPT ); Thu, 10 Feb 2022 14:17:29 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E682101C for ; Thu, 10 Feb 2022 11:17:30 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id x4so2698298plb.4 for ; Thu, 10 Feb 2022 11:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=VFvt2qkldnELMoC2bjs+OiTFLeMglGyEe/KOlRSrFPg=; b=Mt+K4f4Z5tTvcvLCiB7B1+ELRU1eV8ITrrGZIjrOIuaHkLs9oAE2PvsxEdY/HiZOdn rPkQYqw52SdvrFY7RF6M+QPzZzdkwrr7tyecxQDCZAjUX3fQFIDcNWYuKCXMTvtK4pJ0 hbS3xwEIEaR13b1DQ2jk4a6roKxL88umON9aLTQULqq6sG1zM8hu/BCbDBWttAsX0oB7 OEQK7mw0Pry/3NRpBakM8GG3on4ec1U3rpDcsudsZQz2JrXUyK0Eus9lV6st1CZDzv9R xz4nGiG5vAy8IeMkMyxd+9xe4kg/D86EtsbOsLiWF1jDVczztwOkcEznvGhjkH/oyqm4 tgyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition; bh=VFvt2qkldnELMoC2bjs+OiTFLeMglGyEe/KOlRSrFPg=; b=m/2bF15i6mtpcwGiIhaVSUv29Qi5aASKbJcwMkLlXDmFhoGA7Si2OeB5a8naZDhCBJ 3Ec4ZPWzX7tb4hcNHX67nZ8IXD4NB6q84eGaD9VMYlpthWf1IJ1c/wWwrJgI6YKEAw4S 5E/Zu57uAEPX0bh7G2M6HCZyx7tNDOQasXK4gKyMaSGCsZZ4qT4QUchsA/tkBwqONF5X Wbf2Nk9fyY8dG1RTuXl5NqChFWXChfoIT3gWgLMmy1HCKZpQQPklHgBSOeQ7SvwGeBju DwSVf+CyxNIPPEod7QekUf3dsuoYhLh+GEJIqpTMFICzrgyEtzBWovR65cTMwIawFm5b NTsQ== X-Gm-Message-State: AOAM531UTGMzGkZWfHEB0hCPCfe1LnyYXt+Xd4hYXeYjol60WOG4qLS7 lyVUBWiBOgbq3ujtL40AHiw= X-Received: by 2002:a17:90b:2251:: with SMTP id hk17mr4345884pjb.210.1644520649489; Thu, 10 Feb 2022 11:17:29 -0800 (PST) Received: from google.com ([2620:15c:211:201:4c8c:3496:9911:5b66]) by smtp.gmail.com with ESMTPSA id t9sm2891556pjg.44.2022.02.10.11.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 11:17:28 -0800 (PST) Sender: Minchan Kim Date: Thu, 10 Feb 2022 11:17:27 -0800 From: Minchan Kim To: John Hubbard Cc: linux-mm , LKML Subject: pin_user_pages supports NULL pages arguments? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * pin_user_pages() - pin user pages in memory for use by other devices < snip > * @pages: array that receives pointers to the pages pinned. * Should be at least nr_pages long. Or NULL, if caller * only intends to ensure the pages are faulted in. pin_user_pages(,, pages = NULL, ); gup_flags |= FOLL_PIN __get_user_pages_locked __get_user_pages .. VM_BUG_ON(!!pages != !!(gup_flags & (FOLL_GET | FOLL_PIN)));