memblock_clear_kho_scratch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

memblock_clear_kho_scratch β€” okay so bestie, this one is literally just: clear the MEMBLOCK_KHO_SCRATCH flag for a specified region. That's it. That's the whole vibe. πŸ’…

This page lives in the Kernel API Manual, and the function you're looking at is memblock_clear_kho_scratch(9). She's a little one, but she's iconic for what she does. ✨


🌸 SYNOPSIS 🌸

int memblock_clear_kho_scratch (phys_addr_t base , phys_addr_t size );

Return type is int, bestie β€” she gives you back a number, not a struct, not a pointer, just a whole int. Noted. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • base β€” the base phys addr of the region πŸ’– so like, where the region starts in physical address space.
  • size β€” the size of the region 🌸 like, how much of it there is. base + size = the region, iykyk.

✨ RETURN ✨

  • 0 on success β€” slay! πŸŽ‰
  • -errno on failure β€” not slay, but that's the deal. 😭

So the return is literally <green>0 on success, -errno on failure</green>. No cap. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file for all of this is ./mm/memblock.c β€” that's the source of truth, the main character's house. 🏠 And here's the whole friend group, fr fr:

πŸ’‘ Notice how memblock_mark_kho_scratch(9) is right there in the list? Yeah β€” she's the sister function. This page is the "un-mark" girly. 🧚

That's the whole page, bestie!! Go clear that flag, get your 0, and live your truth. πŸ’œπŸŒˆβ­

Sign-off szn πŸŽ€ β€” this one's from ./mm, dated October 2026, and the page is memblock_clear_kho_scratch(9). Mwah. πŸ˜˜πŸ’…

πŸ“¦ where this page comes from