Page MenuHomeFreeBSD

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

Authored by bz on Sun, Jun 30, 8:49 PM.
Tags
None
Referenced Files
F87463652: D45815.id140408.diff
Wed, Jul 3, 11:34 AM
Unknown Object (File)
Mon, Jul 1, 6:54 PM
Unknown Object (File)
Mon, Jul 1, 12:08 PM
Unknown Object (File)
Mon, Jul 1, 11:40 AM
Unknown Object (File)
Mon, Jul 1, 10:42 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

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

Test Plan

(I amnually extracted this modulo the extra changes on top
of D45812 as moving it can go independetly upfront).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 58431
Build 55319: arc lint + arc unit