add_usable_mem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– add_usable_mem(9) πŸ’–

ok so this is a page from the Kernel API Manual (section 9, the kernel-functions girlypop section, iykyk) and honestly? it's a little one but she's doing her job. let's get into it ✨


🌸 NAME 🌸

add_usable_mem β€” literally the function that adds the usable memory ranges within the given memory range to the buffer. that's it, that's the whole vibe. no cap. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int add_usable_mem (struct umem_info *um_info , u64 base , u64 end );

like she takes three things and she returns an int. iconic behavior tbh πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • um_info β€” the usable memory buffer and the ranges info. she's carrying both, main character energy fr fr πŸ‘‘
  • base β€” base address of the memory range you wanna look for. the starting point bestie πŸ’œ
  • end β€” end address of the memory range you wanna look for. the finish line 🏁

⭐ DESCRIPTION ⭐

Returns 0 on success. Returns a negative errno on error. that's genuinely the whole description, she's a short queen and we respect that πŸ™ˆπŸ’–

ok lowkey important: on error it's a negative errno, not some random positive number. don't be out here misreading it, bestie 😭

🌈 SEE ALSO 🌈

the whole friend group, in order, no one left out 🫢:


πŸ’€ warning-ish note from me to you: every one of those is (9), so they're all kernel functions, not commands. don't go typing them into your shell, bestie, that's not the move πŸ™ˆ

and that's the page!! mwah πŸ’‹

source: ./arch/powerpc/kexec Β· dated October 2026 Β· go off, kexec file loader, you ate πŸŽ€βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from