Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2021 02:12:56 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 04cc0c393c31 - main - malloc(9): provide missing malloc_aligned implementation
Message-ID:  <202108030212.1732Cufb065682@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=04cc0c393c317b6d5e28c8dc80cd1b5ea071f28f

commit 04cc0c393c317b6d5e28c8dc80cd1b5ea071f28f
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-08-03 02:11:44 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-08-03 02:12:39 +0000

    malloc(9): provide missing malloc_aligned implementation
    
    Pointy hat:     kevans
    Fixes:  6162cf885c00 ("malloc(9): Document/complete aligned variants")
---
 sys/kern/kern_malloc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index bd0f46ea5220..0c2f1689d194 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -771,6 +771,13 @@ malloc_domainset_exec(size_t size, struct malloc_type *mtp, struct domainset *ds
 	return (malloc_large(size, mtp, ds, flags DEBUG_REDZONE_ARG));
 }
 
+void *
+malloc_aligned(size_t size, size_t align, struct malloc_type *type, int flags)
+{
+	return (malloc_domainset_aligned(size, align, type, DOMAINSET_RR(),
+	    flags));
+}
+
 void *
 malloc_domainset_aligned(size_t size, size_t align,
     struct malloc_type *mtp, struct domainset *ds, int flags)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108030212.1732Cufb065682>