Re: [PATCH 2/4] char: xillybus: replace __get_free_pages() with kmalloc()

From
Mike Rapoport <rppt@kernel.org>
Date
2026-09-01 17:24:38
Also in
linux-arm-kernel, linux-mm, lkml
Reply to
Eli Billauer, 2026-09-01
On Tue, Sep 01, 2026 at 10:42:47AM +0200, Eli Billauer wrote:
On 31/08/2026 13:32, Mike Rapoport wrote:
quoted
For large sizes kmalloc falls back to page allocator anyway.

And the doc is out of date unfortunately.
I think it would be a good idea to update the doc first, and by doing so
officially change the API. After getting this change approved, it's indeed
safe to rely on kmalloc() even for larger memory allocations.
The documentation always lags behind the code and "official" API is what
include/linux/slab.h says :)

When I wrote that document, SLAB and SLOB were still around and had
different properties than SLUB for larger allocations.

Still, the documentation update is on it's way upstream:
https://lore.kernel.org/linux-mm/20260831-docs-memalloc-guide-v1-0-547718c274c1@kernel.org/ (local)
 
Regards,
   Eli
-- 
Sincerely yours,
Mike.
Thread (25 messages) 25 messages, 5 authors, last reply 2026-09-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help