memory_bloc...sed_max_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 0 if it was never set πŸ’€ (yes, zero is the "never been set" flag, ngl that's lowkey a mood)

πŸ”₯ SEE ALSO πŸ”₯

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