From nobody Wed Oct 12 16:46:30 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MndpG6Xtbz4fkVk; Wed, 12 Oct 2022 16:46:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MndpG5603z3Rc6; Wed, 12 Oct 2022 16:46:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665593190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f+tsdDOMmXWFy7gs3w689p5jU3+1WVEkiXYYk0ZXLiA=; b=XWyk3uPVJtsiUToOMTS1rWuwq8ILA64groYOkGW50yFuHgV7sn7LwCJgMD24/lVIWuPu4o wfBAYwNQjLEIfvzYVjPLxXg23dva0oI2McEdt++WatMtGMRzRXFRmDZ1Os5o7/aiY2u5Ri LkLqO+4Nt5NKqgsRmFCxFp7O/E9Cde6UNS9lNXYx0Mn4DdMoLFhuE9dey2+hpZx/AOvxOa 5FYZLmyBOtcDnsF9FXMORhNqjlPpCtgoM8D5zZh93gKoo9yTfIQ6LYIQwhzfjv0sT8gFZc Na2zju0pz84zoqPOx6AzBdvghrTLhvMMnkrHaEoKfjmJZVxfDhfGpzc+s3u92g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MndpG3lCRz1MbH; Wed, 12 Oct 2022 16:46:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29CGkUGh007669; Wed, 12 Oct 2022 16:46:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29CGkUEY007668; Wed, 12 Oct 2022 16:46:30 GMT (envelope-from git) Date: Wed, 12 Oct 2022 16:46:30 GMT Message-Id: <202210121646.29CGkUEY007668@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 30c6a6686482 - main - malloc(9): update names and hardlinks List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 30c6a66864821d3b47e25612c0d2e727ec36154e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665593190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f+tsdDOMmXWFy7gs3w689p5jU3+1WVEkiXYYk0ZXLiA=; b=X+e4VUyxGAMqUhgHFYKVch79QhuWNenAxPiNas87JBsqy2230Q6iPTzHwm+CLFBuDQ0mL+ 581pbocKzSiTo0hF/Ut225aCAJxhelVDyEY6QtLjSeiW5yhHQHGIu3VK54JxaodYyM5vSo 7JsfLycOt33cjX5gmWoYtcXr+5LNkJjKRk3leWZ9L3T+CJfaNGKpAwxybJaU1NIGb7+i1f l0a8sHvZ9SX7FXZd0hEI/7bqk305grRCpiZsdDvXWCMGwQSA+uLA47+rqjTyHrdVq0j4lI KnkWFXLC+2Iki8MzxaL8lujBYrDLmgjTJeX8U61kuQ3GXn9wSjIni9Ok5Yg2Qg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665593190; a=rsa-sha256; cv=none; b=FeeIHSULZJXExvKt8+yn78OlVmT2opB9f1OMz+Fhxlz5f4WiKP32cweluzlmUDLracnpnB gq13BaFGTEx4v2aG5Fj2qs/TRbt8GHQTN7Fe4y0PcYuD7/hO2n9MN9Ftcp+uqSqTE0cE2I UyNnFoan43Gnz1D14jlYusXR1QyYhDHVoufvOIVVK37ucPmMdFU9umUaY40489zevhaZbn jxxJR95JcvFlN9GB2C2Zo8EIFFLGcde04A8AF7bTYauZrBbcYpcw0QXqJ5Ze06xoAPJtuy OtdYOmPaat0oYW5I5MflYhCtRUpj3U1Du304Inonysw8jek1M4IWAvHsdhEkUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=30c6a66864821d3b47e25612c0d2e727ec36154e commit 30c6a66864821d3b47e25612c0d2e727ec36154e Author: Mitchell Horne AuthorDate: 2022-10-12 16:43:57 +0000 Commit: Mitchell Horne CommitDate: 2022-10-12 16:46:12 +0000 malloc(9): update names and hardlinks Give all documented functions a .Nm entry in the man page, following the order they are listed in the synopsis. Create MLINKs for each of the functions as well. While here, add a missing include directive to the synopsis, and appease mandoc by wrapping a long line. Reviewed by: markj, imp (previous version), jhb (previous version) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36940 --- share/man/man9/Makefile | 8 +++++++- share/man/man9/malloc.9 | 17 ++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 9719cb17c177..4a5ecb2b0593 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1418,13 +1418,19 @@ MLINKS+=make_dev.9 destroy_dev.9 \ make_dev.9 make_dev_p.9 \ make_dev.9 make_dev_s.9 MLINKS+=malloc.9 free.9 \ + malloc.9 malloc_aligned.9 \ malloc.9 malloc_domainset.9 \ + malloc.9 malloc_domainset_aligned.9 \ + malloc.9 malloc_domainset_exec.9 \ + malloc.9 malloc_exec.9 \ + malloc.9 malloc_usable_size.9 \ malloc.9 mallocarray.9 \ malloc.9 mallocarray_domainset.9 \ malloc.9 MALLOC_DECLARE.9 \ malloc.9 MALLOC_DEFINE.9 \ malloc.9 realloc.9 \ - malloc.9 reallocf.9 + malloc.9 reallocf.9 \ + malloc.9 zfree.9 MLINKS+=mbchain.9 mb_detach.9 \ mbchain.9 mb_done.9 \ mbchain.9 mb_fixhdr.9 \ diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index c240344ea77e..26dcf3081f3e 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -29,16 +29,25 @@ .\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $ .\" $FreeBSD$ .\" -.Dd July 2, 2021 +.Dd October 12, 2022 .Dt MALLOC 9 .Os .Sh NAME .Nm malloc , +.Nm mallocarray , .Nm free , +.Nm zfree , .Nm realloc , .Nm reallocf , +.Nm malloc_usable_size , +.Nm malloc_aligned , +.Nm malloc_exec , +.Nm MALLOC_DECLARE , .Nm MALLOC_DEFINE , -.Nm MALLOC_DECLARE +.Nm malloc_domainset , +.Nm malloc_domainset_aligned , +.Nm malloc_domainset_exec , +.Nm mallocarray_domainset .Nd kernel memory management routines .Sh SYNOPSIS .In sys/types.h @@ -73,6 +82,7 @@ .Fn MALLOC_DEFINE type shortdesc longdesc .In sys/param.h .In sys/domainset.h +.In sys/malloc.h .Ft void * .Fn malloc_domainset "size_t size" "struct malloc_type *type" "struct domainset *ds" "int flags" .Ft void * @@ -116,7 +126,8 @@ Both and .Fn malloc_domainset_exec can be used to return executable memory. -Not all platforms enforce a distinction between executable and non-executable memory. +Not all platforms enforce a distinction between executable and non-executable +memory. .Pp The .Fn mallocarray