Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1964183imm; Sat, 30 Jun 2018 07:58:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeltV03S/w02xS657IAdKFGzREODC3mifte779/WkOiqYlaC68Y79FnoWagzFQaQbWS+cby X-Received: by 2002:a62:6941:: with SMTP id e62-v6mr18783163pfc.56.1530370697417; Sat, 30 Jun 2018 07:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530370697; cv=none; d=google.com; s=arc-20160816; b=c+LyPnNr3/dYGdBZ4aMq0Cty1KYakxCIUhnISfVWy4hG6AbV17dsYNlqm6gBKsBTGf uTKPkTG1/rpyaiP3CHE1MPdBRI3e1XeJ724HLTvXyRH3nmxhJ/tjyLQHMWgJ2RsiyF+Y NjaNnbV1ggVSPJ9bd0uhB/52gUP/oabiQkwXzvoI3nI6AGS3oSulaWxFX5RgEZ9VuMo4 NuZVCGsr/0Qsx4Y2BGSDwdPlGQm5j6OKu6ooh3AIeTvgXK6xXd0dIaZNVTCgauHaNMlb lZ/yiDv3rQ4lau8PxzFUTbqXljqNwsCOhcMOHpge1yFggrSTeIoJsHVQZlsVnvFYPVUO n7WQ== 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=bthGI5Iewhta5E/U4EoGgOlixMAspsNrdD6htoj2fU0=; b=Bur+UkpzElHv4Df+RyKymoTtkV7Fx0bOV/aDAgUSmrlsoFx2NV7HbEQ+wEcKG/dkyh 5ZqXpPKKBI7cl4zpRj3kOjsrqrkX/qONUrLOqbE1zQSYnGgmhcmZ0V9nk7E1KNrDE5cS kEjgsTBwkS3GlhIttxorKjpT4RVUspIhsjEbVkGaDbw/ths/TzFl1VMfc3/abPvtOIC2 CuNHxMjE+UiSQZUTvlrQUUN7qlZ/rHinvH8P/Vhxk6k6VuQCpxa9jshLF1jWhyGa6mLP Q4uV7gci3D3Dlxx9HDErtHJ6xCHTzDePSHakbgflVnkVQvgZRzAKUhhsFxfFXgn8AmCk jDfw== 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 o184-v6si10258723pga.520.2018.06.30.07.58.03; Sat, 30 Jun 2018 07:58:17 -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 S1752005AbeF3Oz5 (ORCPT + 99 others); Sat, 30 Jun 2018 10:55:57 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53982 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751825AbeF3Ozi (ORCPT ); Sat, 30 Jun 2018 10:55:38 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5UErV7o050091 for ; Sat, 30 Jun 2018 10:55:37 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jx60wj992-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 30 Jun 2018 10:55:37 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 30 Jun 2018 15:55:35 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sat, 30 Jun 2018 15:55:33 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5UEtWYE30343200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Jun 2018 14:55:32 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 587C6A4053; Sat, 30 Jun 2018 15:55:18 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BBB08A4040; Sat, 30 Jun 2018 15:55:16 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.205.240]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 30 Jun 2018 15:55:16 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Sat, 30 Jun 2018 17:55:29 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Randy Dunlap , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH v2 09/11] docs/mm: memblock: add kernel-doc description for memblock types Date: Sat, 30 Jun 2018 17:55:04 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530370506-21751-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530370506-21751-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18063014-0008-0000-0000-0000024E31D6 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18063014-0009-0000-0000-000021B43446 Message-Id: <1530370506-21751-10-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-30_05:,, 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=951 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806300176 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Mike Rapoport --- include/linux/memblock.h | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 63704c6..5169205 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -20,7 +20,13 @@ #define INIT_MEMBLOCK_REGIONS 128 #define INIT_PHYSMEM_REGIONS 4 -/* Definition of memblock flags. */ +/** + * enum memblock_flags - definition of memory region attributes + * @MEMBLOCK_NONE: no special request + * @MEMBLOCK_HOTPLUG: hotpluggable region + * @MEMBLOCK_MIRROR: mirrored region + * @MEMBLOCK_NOMAP: don't add to kernel direct mapping + */ enum memblock_flags { MEMBLOCK_NONE = 0x0, /* No special request */ MEMBLOCK_HOTPLUG = 0x1, /* hotpluggable region */ @@ -28,6 +34,13 @@ enum memblock_flags { MEMBLOCK_NOMAP = 0x4, /* don't add to kernel direct mapping */ }; +/** + * struct memblock_region - represents a memory region + * @base: physical address of the region + * @size: size of the region + * @flags: memory region attributes + * @nid: NUMA node id + */ struct memblock_region { phys_addr_t base; phys_addr_t size; @@ -37,14 +50,30 @@ struct memblock_region { #endif }; +/** + * struct memblock_type - collection of memory regions of certain type + * @cnt: number of regions + * @max: size of the allocated array + * @total_size: size of all regions + * @regions: array of regions + * @name: the memory type symbolic name + */ struct memblock_type { - unsigned long cnt; /* number of regions */ - unsigned long max; /* size of the allocated array */ - phys_addr_t total_size; /* size of all regions */ + unsigned long cnt; + unsigned long max; + phys_addr_t total_size; struct memblock_region *regions; char *name; }; +/** + * struct memblock - memblock allocator metadata + * @bottom_up: is bottom up direction? + * @current_limit: physical address of the current allocation limit + * @memory: usabe memory regions + * @reserved: reserved memory regions + * @physmem: all physical memory + */ struct memblock { bool bottom_up; /* is bottom up direction? */ phys_addr_t current_limit; -- 2.7.4