From nobody Wed Oct 19 13:50:36 2022 X-Original-To: dev-commits-src-all@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 4MssZ45mR8z4g1LG; Wed, 19 Oct 2022 13:50:36 +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 4MssZ4415yz3LRL; Wed, 19 Oct 2022 13:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666187436; 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=HRgAzu0Wa93vWfRPp75JAMongh7Sn20M5Q6jGSuRmp0=; b=W0ioWaxjxNsZmDDiEkhWAVASBCRAoJMnsmwLLHC8WRM0xfuyRRXItTbXkQrQdeoHTiLcqJ 59jRbnDuGg/Gsw5nw1zJrHqzKrAROY8EjFDhO7emsKX/SKpeORJSCXV51cgTAeaXuUAWYl XKIuRDbxO20YWHFGLWw1VuBVS7Y7hHZGGFRI/4nIbKKctDcGWH4vJ9g+hPY14wGjQfE781 4BClXScZMu+Qn5bHLAqoyRW8F9KeiFZtPOKjdKJ/Ut/OXYKNiG+EE2w/w2tkaHah3OV//I 7dUUiEv44NjKzLvDDnSaA3aNtDR8/u2qzz1Df/FIAIPxkbbfAahnGFEWO9zFbw== 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 4MssZ4369VzY8T; Wed, 19 Oct 2022 13:50:36 +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 29JDoajZ006581; Wed, 19 Oct 2022 13:50:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29JDoab0006580; Wed, 19 Oct 2022 13:50:36 GMT (envelope-from git) Date: Wed, 19 Oct 2022 13:50:36 GMT Message-Id: <202210191350.29JDoab0006580@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: b03728147ef1 - stable/13 - malloc(9): update names and hardlinks List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: b03728147ef11ddcb68b73f74cc979cf870835b8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666187436; 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=HRgAzu0Wa93vWfRPp75JAMongh7Sn20M5Q6jGSuRmp0=; b=Vjm2hgNVipZe3rEwZgR1gsW+hu4mfr/zJ35OQEYxAJLJteVcuwF0OCJ3msNBM1byNSg6Ql /StSensVahpknILT9E+6A42/oi7JwWj62ixpMni2CVpKgdVRG38cCTOvr76VUqpJ8I/n7X WRCDi+qI2vkgQichllS90MGLS7N2X9bNG6oAMdZuxqAXlYkeBAtN/EPPCaKGsoKH1mMSua ROJuI9uIwoxR/xWa9I5i0Rm4N0XbYvMnRWWMcfI92w61WvQcy7mkKKNOp/EUk9uLQeJjnk 4DCDCb3j0BVFGbPtwwEpTzyObLH5IRnS+jzdZ+hs4Pm/xjowKhyClftZto5oeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666187436; a=rsa-sha256; cv=none; b=XYMUnJQe+vHO6wjOeMB0O3IVzWtald8DCRFHi0tGjWx8JWo9ZaPm/8fH+HUbEKlDSZn1rN bzoC/zL7bYIsRjd+zqfSGW6yAcQWyJ7pEPqA0Ys8sC00D2RXfVrPdlzXa9F+lDES23o20K eJA1nxUng7p5YqBz9jh/dm/52moZXRxZWbBEkj8E0FPv3YeyndvdTyEE+Qu6bDHIV3W/D/ JYu3y7oH7OFQEY1otMjkFXJjo8GeyT9jW6FhBqHyaraxeVH5du6zPdG8gvVFKPC6h9FlVU WhXWB9dGeG1+vQARNnNtLm9tq5clI0c2op/e9pq4GBc8+/COkkjTO1NNMqLDyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=b03728147ef11ddcb68b73f74cc979cf870835b8 commit b03728147ef11ddcb68b73f74cc979cf870835b8 Author: Mitchell Horne AuthorDate: 2022-10-12 16:43:57 +0000 Commit: Mitchell Horne CommitDate: 2022-10-19 13:47:19 +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 (cherry picked from commit 30c6a66864821d3b47e25612c0d2e727ec36154e) --- 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 e360866bd45d..9b4e3e388710 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1417,13 +1417,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