Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1964100imm; Sat, 30 Jun 2018 07:58:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfDA33JLwZyn3xfVNS48ea0lwPDe7Hamu2T6b8M4VS9ySvGgFbplkszZJy78ToUUtS20Lzi X-Received: by 2002:a62:2ad1:: with SMTP id q200-v6mr18788118pfq.70.1530370690526; Sat, 30 Jun 2018 07:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530370690; cv=none; d=google.com; s=arc-20160816; b=ZcUbnSjfK7OSWrEoz7JRvXF9i7rgadJeDWH52FtxBiG8NM+cjTlYZ1kyVaHz/XGA5O 88VCY67dzYffCPWOS6fxOAO+6QaYVceVUcbCDS1y1UscX2RGp4Aw5nPxz3G528GDQu7h zgzwaMBR/BSESfXWtjTIx1tkyCb3ZxR6x3wi4CkQZrdk54k0G2TeEpc/mKUHDUF76/3Z 8qybqyykI0fJYe7SP5Qgw+wUQBwpwWXCkE1V8kpFIFZ8FAmjdxPQRpMoIB+KmQcnAnLQ OMIHtPV9IkuvIF27IG0j8zX3F5BmRM7NUhqnE/m4Ep6wHTwG2vm+a5UvU7pXa5S57Dor XXPw== 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=AVKq9DiVxaadgowtC3QHvuyz7+totRf/NGcFsoOuaNA=; b=SYq6Jfn4HorZNrmr1tZMRicfYFBgC4Ae4ukfykeMBjwKv060d23u98Q7U85usm7cr1 a2QhVlnY4cclV2OAROs00Ux9HdBm02pOltV9ErrD5qQ91FfBH/Ck5Z5vfj4TbRdA/IaK T3R084PgJBX6EdC4PI0w6u1+kqaRF8l3y35kNiEVYd8/QuBvdW58WfV3NB/H0cr04Hfe jU892Hav81qV3bsUUL6eCZill0pmCXdMam6D02NopkiiKSm2Jr/GqwVA/vdegFGF1QN5 OKxDSAwjsphMUG8afI63u9dQmqwDZhsf7bKw2tb2mofpWnt8GttN2nhUaO45+/fKHQ5v OSJg== 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 h75-v6si8863549pfe.332.2018.06.30.07.57.56; Sat, 30 Jun 2018 07:58:10 -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 S1751907AbeF3Ozp (ORCPT + 99 others); Sat, 30 Jun 2018 10:55:45 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60190 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751472AbeF3Oz0 (ORCPT ); Sat, 30 Jun 2018 10:55:26 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5UErWKg126323 for ; Sat, 30 Jun 2018 10:55:26 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jx5xvacs4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 30 Jun 2018 10:55:26 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 30 Jun 2018 15:55:24 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) 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) Sat, 30 Jun 2018 15:55:20 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5UEtKkd37355616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Jun 2018 14:55:20 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DE3BA42041; Sat, 30 Jun 2018 15:55:06 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AC594203F; Sat, 30 Jun 2018 15:55:05 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.205.240]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 30 Jun 2018 15:55:05 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Sat, 30 Jun 2018 17:55:17 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Randy Dunlap , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH v2 04/11] docs/mm: bootmem: add kernel-doc description of 'struct bootmem_data' Date: Sat, 30 Jun 2018 17:54:59 +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-0028-0000-0000-000002D6B5D4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18063014-0029-0000-0000-0000238E2AF4 Message-Id: <1530370506-21751-5-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=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 --- include/linux/bootmem.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 7942a96..4251519 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h @@ -27,9 +27,20 @@ extern unsigned long max_pfn; extern unsigned long long max_possible_pfn; #ifndef CONFIG_NO_BOOTMEM -/* - * node_bootmem_map is a map pointer - the bits represent all physical - * memory pages (including holes) on the node. +/** + * struct bootmem_data - per-node information used by the bootmem allocator + * @node_min_pfn: the starting physical address of the node's memory + * @node_low_pfn: the end physical address of the directly addressable memory + * @node_bootmem_map: is a bitmap pointer - the bits represent all physical + * memory pages (including holes) on the node. + * @last_end_off: the offset within the page of the end of the last allocation; + * if 0, the page used is full + * @hint_idx: the PFN of the page used with the last allocation; + * together with using this with the @last_end_offset field, + * a test can be made to see if allocations can be merged + * with the page used for the last allocation rather than + * using up a full new page. + * @list: list entry in the linked list ordered by the memory addresses */ typedef struct bootmem_data { unsigned long node_min_pfn; -- 2.7.4