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
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D45815

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
rG5c3af1d697dc: nullfs: Use an a_gen field to cast to vop_generic_args
Branches
Unknown
Tags
Unknown