hcall_assign_mmiodev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hcall_assign_mmiodev(9) β€” the Kernel API Manual page, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and the function we're simping for today is hcall_assign_mmiodev. Say hi πŸ‘‹


✨ NAME ✨

hcall_assign_mmiodev β€” literally just assigns a MMIO device to a User VM. that's the whole vibe. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

long hcall_assign_mmiodev (u64 vmid , u64 addr );

two u64s in, one long out. she's efficient like that πŸ’…


🧚 ARGUMENTS 🧚

  • vmid β€” the User VM ID. which VM are we giving the device to, bestie? 🫢
  • addr β€” the Service VM GPA of the struct acrn_mmiodev. like, the address of it. in the Service VM. the GPA one. πŸ“

⭐ RETURN ⭐

  • 0 on success β€” slay, it worked ✨
  • <0 on failure β€” it's giving error, and honestly? 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/virt/acrn/hypercall.h β€” go read it, iykyk πŸ“–

the whole hypercall friend group, in order, because they always roll together:


bestie note: <0 is not a number, it's a feeling. check your return value. πŸ™ˆ

okay that's the whole page, mwah πŸ’– this one lives in ./drivers/virt/acrn, and it's dated October 2026 β€” mark your calendar, she's a main character πŸ‘‘β­πŸŒˆ

πŸ“¦ where this page comes from