Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp380598imm; Thu, 26 Jul 2018 05:23:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcD09KVbXorOzuilgGn2T1ZSXc8dOA2MR3VsWKDS1kFmSJYEDDd5Ot11ojznA0Al3yI86dM X-Received: by 2002:a17:902:6bc8:: with SMTP id m8-v6mr1820100plt.162.1532607826913; Thu, 26 Jul 2018 05:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532607826; cv=none; d=google.com; s=arc-20160816; b=x7Cv86Q/ZPNLNo59h2iF/drfFSzcKCezGCpOi9tJABjMVJziHXeH7M+VskIMjFIvWQ 3xCS22fidpYYQPArQoyOL+8ccUpO5eytVWjs7v1fR3m490wZs8aaJfd7M3m9FWRQUBAM sgdsXtjTly/0v8yNmfZ8W5+KKyOZ/ifcGJZWWI3BS2q9iGFlm/2XtuMtbvYsZv4I/7qt ZM4+mwl3vN0moglb7/+Whmo0DLLKIr0mAqG+K3u8RfGfsxHVF+KSc2vfO7YMhwwXUk8+ /JF6YsHu8uYy/pz73kyMhYvuQdU6c0UXOsHiopHYCa+Lkt2sJgHGMj6jCL68+9ylP16G 7K+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=UXTpteTlCI/K3ki98mJpOjg2OKCDr+IMEUcQByHixqI=; b=VQAtRznnfr3XAxk6KV0bdyXxMsoEbmQv3fgVoNvl1RNor3RKVTvtzH1leaDmTU28HZ pjGK0PyeLD0V+VBCcLUcUDxxkg/JZu+69wCjwEGl79mhYyRmdyDwQXtNa1ctHB1+gTKs n0aZbXGv6T+bzONz3tC3sYHMpkLXxiAUOFigQ5okitflJJ7EE2z+W1+gjYagH8HHqyG/ 9ocely1f/LNZ2eO4iZ53WgrKn9NTk9pRK2neYYXiz31CAXK8eWxYqR5wx0nJhLMkDWRU hYpCkfKy0OCHxyh/WZ/4VJHg5ngNmoNcUV1DvbFvZTF0+FOOP6Vl7SDHlSId7fV1DFI4 3TTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7-v6si1356106pfc.352.2018.07.26.05.23.32; Thu, 26 Jul 2018 05:23:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730881AbeGZNjG (ORCPT + 99 others); Thu, 26 Jul 2018 09:39:06 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52888 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730085AbeGZNjG (ORCPT ); Thu, 26 Jul 2018 09:39:06 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6QCJ0VP131101 for ; Thu, 26 Jul 2018 08:22:30 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kfcxkuhky-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Jul 2018 08:22:28 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Jul 2018 13:22:24 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 26 Jul 2018 13:22:21 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6QCMLQF42467568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Jul 2018 12:22:21 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7226711C050; Thu, 26 Jul 2018 15:22:34 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EBF5011C05C; Thu, 26 Jul 2018 15:22:32 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.177]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 26 Jul 2018 15:22:32 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Thu, 26 Jul 2018 15:22:18 +0300 From: Mike Rapoport To: Jonathan Corbet , Andrew Morton Cc: Matthew Wilcox , linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH v2 7/7] docs/core-api: mm-api: add section about GFP flags Date: Thu, 26 Jul 2018 15:22:02 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532607722-17079-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532607722-17079-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072612-0028-0000-0000-000002E08D44 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072612-0029-0000-0000-000023987EB2 Message-Id: <1532607722-17079-8-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-26_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807260129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Mike Rapoport --- Documentation/core-api/mm-api.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/core-api/mm-api.rst b/Documentation/core-api/mm-api.rst index b5913aa..3d2a7ec 100644 --- a/Documentation/core-api/mm-api.rst +++ b/Documentation/core-api/mm-api.rst @@ -14,6 +14,28 @@ User Space Memory Access .. kernel-doc:: mm/util.c :functions: get_user_pages_fast +Memory Allocation Controls +========================== + +Linux provides a variety of APIs for memory allocation from direct +calls to page allocator through slab caches and vmalloc to allocators +of compressed memory. Although these allocators have different +semantics and are used in different circumstances, they all share the +GFP (get free page) flags that control behavior of each allocation +request. + +.. kernel-doc:: include/linux/gfp.h + :doc: Page mobility and placement hints + +.. kernel-doc:: include/linux/gfp.h + :doc: Watermark modifiers + +.. kernel-doc:: include/linux/gfp.h + :doc: Reclaim modifiers + +.. kernel-doc:: include/linux/gfp.h + :doc: Common combinations + The Slab Cache ============== -- 2.7.4