memory_block...ise_max_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” if size is 0 or not pow2 aligned. bestie, check your alignment 😭
  • -EBUSY β€” if the value has already been probed. it’s already been through enough, okay? πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


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