HomeFreeBSD

LinuxKPI: move __kmalloc from slab.h to slab.c

Description

LinuxKPI: move __kmalloc from slab.h to slab.c

In order to allow the allocator to change in the future move it into
the implementation file from being an inline function in the header.

While here factor out the size calculation and add a comment as-to why
this is done. We will need the size (_s) in the future to make a
decision on how to allocate.

Sponsored by: The FreeBSD Foundation
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D45815

(cherry picked from commit 1f7df757017404011732196e65981d9325f7a89f)

Details

Provenance
bzAuthored on Jun 30 2024, 8:37 PM
Reviewer
emaste
Differential Revision
D45815: LinuxKPI: move __kmalloc from slab.h to slab.c
Parents
rG87d3af98590b: kern_malloc: fold free and zfree together into one __always_inline func
Branches
Unknown
Tags
Unknown