Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1963790imm; Sat, 30 Jun 2018 07:57:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLeBcQhkwPS+nF8XTjDE4eKiw3RJ3lq0Wy/O6fSwDkCJPU/jS8UqUjvPrpxfhyhvo1b+VQq X-Received: by 2002:a17:902:820a:: with SMTP id x10-v6mr19020883pln.179.1530370661430; Sat, 30 Jun 2018 07:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530370661; cv=none; d=google.com; s=arc-20160816; b=cQhGVKkJFa/iKA3SlXlXmibVXzG7cCFP0G2cX5GIFvTJS01myfguj1gflDRkvRzVx3 Oyb3YfejZz1h7ZGlDJ2nWvfeaCL45ZbmY3uwUGzkIjneXMDOyQ/MOBKl9/N6pjIWZYIX avcRilVzfgu67/dGyq3oH2H1BN5vtOj7/bnk8J9yllbm/G4/KMLtw5zton/XvBjki3Lv KAwHfk7teit9s9v/kzc8glnhks3pM2Li8UZ1Yeo168SRKKeZqPTPA++K3oMVj5D9zjmU klEsyHH4LaYuIYsQFCnu0KB2Nurcpq/vIz7n9LD09i+MwhesnzOei6FpI+bFiFweofC5 V4CQ== 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=2s9LzuVo9+Rr0tHwTpYsADL0Pdnz0r2GB5L6aRxGXhQ=; b=XcFe8nE6+bQOUja5PkizbQIs9y7aS3h/D+XCyx3m4VBVAABcpI0xJdNk1IWw9Mk3Ty AcMZvoOLAg8QBKu9wbIIz+BkqCeeEHMAt90H2RZYs6zbjSYXKzATi7Rfa+uS0hmuA4hp 7gUbn/tg4O8IZ2lyUTEeetcwGzZhT3mO2LmJKKW7iS8b38992dKDykbuuYeq0zQkexGm sZke6WKq/Xpz2Ej7F1k3w0dj/HNDFN26CWOKT4Kr3iv88SZadGa96KUAHRDzBOgrZs06 RZl9ESfEjZetZPVEolLrY6lhoMBPhSmpIrL0PaTMMDbeH/HRzhtkrKrnavZpUkeBVFWm /AeQ== 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 o9-v6si11782782plk.434.2018.06.30.07.57.27; Sat, 30 Jun 2018 07:57:41 -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 S1751990AbeF3Ozv (ORCPT + 99 others); Sat, 30 Jun 2018 10:55:51 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38712 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbeF3Ozg (ORCPT ); Sat, 30 Jun 2018 10:55:36 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5UErVuK052358 for ; Sat, 30 Jun 2018 10:55:35 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jx6dfhbrp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 30 Jun 2018 10:55:35 -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:33 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) 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:30 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5UEtT3S34668774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Jun 2018 14:55:29 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A06564C04A; Sat, 30 Jun 2018 15:55:15 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D1B04C040; Sat, 30 Jun 2018 15:55:14 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.205.240]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 30 Jun 2018 15:55:13 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Sat, 30 Jun 2018 17:55:27 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Randy Dunlap , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH v2 08/11] docs/mm: memblock: add kernel-doc comments for memblock_add[_node] Date: Sat, 30 Jun 2018 17:55:03 +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-0000024E31D5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18063014-0009-0000-0000-000021B43444 Message-Id: <1530370506-21751-9-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=2 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-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 --- mm/memblock.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 8159869..3e6be01 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -595,12 +595,35 @@ int __init_memblock memblock_add_range(struct memblock_type *type, } } +/** + * memblock_add_node - add new memblock region within a NUMA node + * @base: base address of the new region + * @size: size of the new region + * @nid: nid of the new region + * + * Add new memblock region [@base, @base + @size) to the "memory" + * type. See memblock_add_range() description for mode details + * + * Return: + * 0 on success, -errno on failure. + */ int __init_memblock memblock_add_node(phys_addr_t base, phys_addr_t size, int nid) { return memblock_add_range(&memblock.memory, base, size, nid, 0); } +/** + * memblock_add - add new memblock region + * @base: base address of the new region + * @size: size of the new region + * + * Add new memblock region [@base, @base + @size) to the "memory" + * type. See memblock_add_range() description for mode details + * + * Return: + * 0 on success, -errno on failure. + */ int __init_memblock memblock_add(phys_addr_t base, phys_addr_t size) { phys_addr_t end = base + size - 1; @@ -1464,9 +1487,9 @@ void __init __memblock_free_early(phys_addr_t base, phys_addr_t size) memblock_remove_range(&memblock.reserved, base, size); } -/* +/** * __memblock_free_late - free bootmem block pages directly to buddy allocator - * @addr: phys starting address of the boot memory block + * @base: phys starting address of the boot memory block * @size: size of the boot memory block in bytes * * This is only useful when the bootmem allocator has already been torn -- 2.7.4