hcall_sos_remove_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hcall_sos_remove_cpu β€” a Kernel API Manual moment ✨

okay so bestie, you're looking at hcall_sos_remove_cpu(9), and yes, the manual name is literally right there in the page title, no cap. This is the kernel API manual, and we're about to get into it. πŸŽ€


✨ NAME ✨

hcall_sos_remove_cpu β€” literally just removing a vCPU of the Service VM. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

long hcall_sos_remove_cpu (u64 cpu );

that's it, that's the whole function signature, and honestly? iconic. πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • cpu β€” the vCPU that's getting removed. like, this is the one you're saying bye to. 🫢

⭐ RETURN ⭐

  • 0 on success β€” slay, it worked ✨
  • <0 on failure β€” not slay, something went wrong 😭
fr fr, that's the entire return contract. zero means good, anything negative means bad. no in-between, no ambiguity, periodt. πŸ’€

🌈 SEE ALSO 🌈

okay so there's a whole friend group here and you need to know them all, bestie. first up, the kernel file they all live in: ./drivers/virt/acrn/hypercall.h πŸ‘‘

then the whole squad of fellow hypercalls:

like, that's the whole group chat. iykyk. πŸ’œ


and that's the page, bestie!! 🧚 this one comes from ./drivers/virt/acrn, dated October 2026, and it's the hcall_sos_remove_cpu(9) page β€” go forth and remove that vCPU, you absolute main character πŸ‘‘πŸ’–

πŸ“¦ where this page comes from