memory_bloc...sed_max_size(9)
π memory_bloc...sed_max_size(9) β like, the Kernel API Manual era π
okay so bestie, welcome to section 9 of the Kernel API Manual, where the kernel devs hang out and write docs about hotplug memory blocks β¨ grab a lil snack, this one's short and sweet π
πΈ NAME πΈ
memory_block_advised_max_size β query advised max hotplug block size. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
unsigned long memory_block_advised_max_size (void );
π¦ ARGUMENTS π¦
voidβ no arguments, not a single one, zero, nada π she takes nothing and she gives you a number, iconic behavior honestly
π DESCRIPTION π
okay so here's the tea β the very first time you call this thing, that's it β after the first call, the value can never change. periodt. no take-backs, no glow-ups, it's locked in forever π
so if you're a caller and what you actually want is the actual block size β not the advised one β you should be using memory_block_size_bytes instead, mmkay? don't get it twisted π
this interface is intended for use by arch-init when initializing the hotplug block size. that's her whole job, that's her main character energy π
π RETURN π
- advised size in bytes π
- or literally
0if it was never set π (yes, zero is the "never been set" flag, ngl that's lowkey a mood)
π₯ SEE ALSO π₯
- Kernel file
./drivers/base/memory.c memory_block_advise_max_size(9)memory_block_add_nid_early(9)walk_memory_blocks(9)for_each_memory_block(9)memory_group_register_static(9)memory_group_register_dynamic(9)memory_group_unregister(9)
like, go read the whole friend group, they're all obsessed with each other fr fr π«Ά
and that's the page babes πΈ sourced straight from ./drivers/base, stamped October 2026 β the Kernel API Manual said see you next semester, mwah ππ§ββοΈβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms