Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp680786imm; Wed, 25 Jul 2018 04:27:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdzJp8l3hWKhcmivw7HJ+HjvLmZri+KEK3bFg5bG+dxvdJJd7DyC/PSgMeO1354RJkVoig9 X-Received: by 2002:a17:902:be07:: with SMTP id r7-v6mr21263097pls.124.1532518065389; Wed, 25 Jul 2018 04:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532518065; cv=none; d=google.com; s=arc-20160816; b=TmSoYKZdXhOkZSKlrXEsc3wD7039SBP4IPPsUcxLHBvEhLvvmc+zxkX08Kxuteb7U7 A0hmA6tmbIWUJGRpJ7/G4uRiPR/7WQhyhK4J6LM+zzbUNkBZN52SxQBNNJoyvK8N2OS3 vdt5X2M+BMKh+XOdRM9Ds+9sKBCj0PbEmOBFlfIctVXRsbwD8U/Ypt/kTW1iyRm/lfIo YN+GtuUsLBwRrhxLhfJw8XdJlBy33ZmFt0AJTnUIzrkzv175NLSvRUhYa8jP/3ELCxDi 6laIJDA4ttgEvGvWToY7kYrdJ7pjZl202NIXkB2RRpaqIkLUn/A05KjuF0MD6ni8iPOo 1xUA== 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=ByNu2pRirRqKgFzNHUK6phfE5DOCImJ2REERDFg+THQ=; b=SsLbnXiW9G+0tOaXKn3Hx+XTbbQ5vzAEFVH0qfELV7HbxanhInFFbW5Xs6WpaD1uds MJcwLK15II6ebiXirBdgE6tvOFj1Nb8/Su8g9zniOeS4dsnPg1c3zl5KyoTipVOk0GLe 5ABcttK3Jf+g+uecDv+iZU1CAUDtQDQo9ZM3vpCjb20df28L9JbbJ0Oa5wnN1hhixwVS 27nJ1E6PeR3cQ5l5pg2rKFTnUawyLKMGx0LNkPGEnEnDQ/OivJ02rdGMSRSAbmNyI4uA /i9+6epyeqorGommuh1PmreDnXFSTJQfRMiogNN13n6KS7aketT82lDvgCfKhahBWNNB gOmg== 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 z19-v6si2994932pgi.388.2018.07.25.04.27.30; Wed, 25 Jul 2018 04:27:45 -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 S1729005AbeGYMhu (ORCPT + 99 others); Wed, 25 Jul 2018 08:37:50 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57908 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728951AbeGYMhs (ORCPT ); Wed, 25 Jul 2018 08:37:48 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6PBPRvS134895 for ; Wed, 25 Jul 2018 07:26:33 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2kepn0mg92-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 25 Jul 2018 07:26:33 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 25 Jul 2018 12:26:31 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 25 Jul 2018 12:26:29 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6PBQS1w36831476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 25 Jul 2018 11:26:28 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2ED011C04A; Wed, 25 Jul 2018 14:26:42 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C1F111C050; Wed, 25 Jul 2018 14:26:41 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.110]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 25 Jul 2018 14:26:41 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 25 Jul 2018 14:26:26 +0300 From: Mike Rapoport To: Jonathan Corbet , Andrew Morton Cc: linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH 7/7] docs/core-api: mm-api: add section about GFP flags Date: Wed, 25 Jul 2018 14:26:10 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532517970-16409-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532517970-16409-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072511-0020-0000-0000-000002AAF0BB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072511-0021-0000-0000-000020F789FF Message-Id: <1532517970-16409-8-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-25_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=959 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807250124 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 65a8ef09..1e8c011 100644 --- a/Documentation/core-api/mm-api.rst +++ b/Documentation/core-api/mm-api.rst @@ -11,6 +11,28 @@ User Space Memory Access .. kernel-doc:: arch/x86/lib/usercopy_32.c :export: +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