memory_block...ise_max_size(9)
π memory_block_advise_max_size(9) π
okay so welcome to the Kernel API Manual, bestie β this page is all about memory_block_advise_max_size, and itβs giving βtiny function, very specific job.β letβs get into it π
πΈ NAME πΈ
memory_block_advise_max_size β advise memory hotplug on the max suggested block size, usually for alignment. thatβs the whole vibe β¨
β¨ SYNOPSIS β¨
the call looks like this, fr fr:
int memory_block_advise_max_size (unsigned long size );
π¦ ARGUMENTS π¦
sizeβ the suggestion for the maximum block size. bestie, it must be aligned on power of 2. no exceptions, periodt π
π DESCRIPTION π
Early boot software (pre-allocator init) may advise archs on the max block size. lowkey important early-boot business π§
This value can only decrease after initialization, because the intent is to identify the largest supported alignment for all sources. so likeβ¦ it can go down, not up, and thatβs on purpose π
Use of this value is arch-defined, as is min/max block size. iykyk β the arch gets to decide how this all works π
π₯ RETURN π₯
0β on success. slay β-EINVALβ ifsizeis0or not pow2 aligned. bestie, check your alignment π-EBUSYβ if the value has already been probed. itβs already been through enough, okay? π
π SEE ALSO π
- Kernel file
./drivers/base/memory.c memory_block_advised_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)
okay thatβs the page, bestie π
stay aligned and hydrated π«Ά kisses from source ./drivers/base, dated October 2026, page title memory_block...ise_max_size(9) πβ¨π
π¦ 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