Message ID | 1532517970-16409-3-git-send-email-rppt@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BC9E1822 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 25 Jul 2018 11:26:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EED9529960 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 25 Jul 2018 11:26:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E273E29A55; Wed, 25 Jul 2018 11:26:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 749D529960 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 25 Jul 2018 11:26:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 765576B0286; Wed, 25 Jul 2018 07:26:27 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 726A06B028A; Wed, 25 Jul 2018 07:26:27 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 543E56B0289; Wed, 25 Jul 2018 07:26:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by kanga.kvack.org (Postfix) with ESMTP id 24DBA6B0286 for <linux-mm@kvack.org>; Wed, 25 Jul 2018 07:26:27 -0400 (EDT) Received: by mail-oi0-f72.google.com with SMTP id w185-v6so7233156oig.19 for <linux-mm@kvack.org>; Wed, 25 Jul 2018 04:26:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=PT49XZuZcLbSA0cHhyH8tuK/AOu6D9h0FO+/F1f4ngFwrzKfP6Ns3n9R4zP+2xeM8Q SSmApSX96uxl2EQ00bUIfGO+KfM5mZLtzmNsB5WR9xumRVkADnTRV76DLf0kLnMk22KP sP14qsIhcNp7yehUyepFFvMANRnMvX1sCGouTA9iYXGJBTiLBwqmoDPBuUcZf3dWeWrK H+mQdds6h7orBVruiFFw++3KJIXBTCxd9YPzrzHNe3VWnlzIbO/SEt1VfQCQEuvwzRdQ U6XA7n5xKCdDT70tFnO41YThlgwOsD0wsFGckmK5Dy+f3TZMR1zspLTQ3NbWHlFTSO08 Wsyw== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AOUpUlHyrPh8YNhA/0S/xXCPdmiIFujZBSBhoqq8I+ti8+7rY5PNcRfF 45stRrqmpxYDfkl2UxRrYHIM0D332FhySVAJXB1WhdmYETjOpGvk0Han+Dx40jwN0c0zWm2KQ1Q cJI5yYsujqxnIeWSvPYtJQtOErMr+w6aDTAPMiXDl88ZozxUgF6/3mn6skKZtkpc= X-Received: by 2002:aca:2808:: with SMTP id 8-v6mr3140356oix.7.1532517986952; Wed, 25 Jul 2018 04:26:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdT3KkR6cKfovbnZwHwwnzJi/TtS2opJX6+zUUTib8C9cYpKyMfRGbwHGq82pSVo/k2TskZ X-Received: by 2002:aca:2808:: with SMTP id 8-v6mr3140318oix.7.1532517986390; Wed, 25 Jul 2018 04:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532517986; cv=none; d=google.com; s=arc-20160816; b=fAdW8zAFRg9ZAy1PicJO39Pt27Ep/ulTsUZFqYNHMFmDIArAoZb1KspylPcndglggo Qribq/tzIEAAgmlo2tyrVGASv8uVeWfjDE/DfgGDOlL9xldimel8thamFzQv2GcyGou2 NGDDtho+3l6B5k3dB8R+47O+LoLjqMRwhAGmySnjZqZMoUE8PsR4WIU9qVOWWqxD5Psf v9RJnuKCcDrWzhJEq+ZII0IHZvNnSTL/0sso/+COwxHK0RdY64Vo/cVZGRL2p12ZuIP2 aJCASSO8xcWSakUtJvCSsJbKw8gtbbmikUbEvKotLY8axFh5sjZ8HAOsjyHR2QNnt/w5 ZX+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=bT9yMFJXSBr2WlQBYK1RAv9fJ8DUH1i9fJv5H82aeBqAw7HAXZ6jhEwwPoBkYxplxl oXrTanv0r7BKKqpYdtWO8iZ4hNg1LTe6GA1604KivHmZZmh1dN1jR2CQqOKie+C+brpH 30h3BeThW+0NdMURGxKrr5JjtIVGj3sTZd6FOl8VL0k5laBQPqIJsO3KJh8p5mDc/DIV MpaJkpyYTZIEavxg3puhfeBAoRVen5/KvtLkDZDIysY639pPD/ER62h2RJO9NJ6wXT4e r3322W80Wj4LO+mHd00K2e6YtA21w8Hm7dxAiv7MreCJq73G/Y/+lre1/VtcIg9H8rkZ asJg== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com. [148.163.156.1]) by mx.google.com with ESMTPS id t194-v6si10212244oif.388.2018.07.25.04.26.26 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 04:26:26 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.156.1; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com 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 w6PBOH14082943 for <linux-mm@kvack.org>; Wed, 25 Jul 2018 07:26:25 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kep26pc9h-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <linux-mm@kvack.org>; Wed, 25 Jul 2018 07:26:25 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <linux-mm@kvack.org> from <rppt@linux.vnet.ibm.com>; Wed, 25 Jul 2018 12:26:21 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) 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:19 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6PBQI5a42074250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 25 Jul 2018 11:26:18 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2BC7E11C058; Wed, 25 Jul 2018 14:26:32 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AAEE411C04C; Wed, 25 Jul 2018 14:26:30 +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:30 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 25 Jul 2018 14:26:16 +0300 From: Mike Rapoport <rppt@linux.vnet.ibm.com> To: Jonathan Corbet <corbet@lwn.net>, Andrew Morton <akpm@linux-foundation.org> Cc: linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport <rppt@linux.vnet.ibm.com> Subject: [PATCH 2/7] mm/util: add kernel-doc for kvfree Date: Wed, 25 Jul 2018 14:26:05 +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-000002AAF0A7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072511-0021-0000-0000-000020F789E9 Message-Id: <1532517970-16409-3-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=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=832 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807250124 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
memory management documentation updates
|
expand
|
diff --git a/mm/util.c b/mm/util.c index 6809014..d2890a4 100644 --- a/mm/util.c +++ b/mm/util.c @@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node); +/** + * kvfree - free memory allocated with kvmalloc + * @addr: pointer returned by kvmalloc + * + * If the memory is allocated from vmalloc area it is freed with vfree(). + * Otherwise kfree() is used. + */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr))
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> --- mm/util.c | 7 +++++++ 1 file changed, 7 insertions(+)