hcall_set_ptdev_intr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hcall_set_ptdev_intr β€” like, the Kernel API Manual page, bestie ✨

okay so picture this: you're deep in the hcall_set_ptdev_intr(9) glow-up of the Kernel API Manual, and the whole vibe is "set up an interrupt for a PCI device that's been assigned to a VM". that's the entire main character energy of this page. no cap. πŸŽ€


✨ NAME ✨

hcall_set_ptdev_intr β€” configure an interrupt for an assigned PCI device. literally its whole job, and it ate. πŸ”₯

πŸ¦‹ SYNOPSIS πŸ¦‹

long hcall_set_ptdev_intr (u64 vmid , u64 irq );

look at her go. two u64s and a long. iconic signature, no notes. πŸ’œ

🌸 ARGUMENTS 🌸

  • vmid β€” the User VM ID, aka which VM we're doing this for. know your girl's ID, bestie. 🫢
  • irq β€” the Service VM GPA of the struct acrn_ptdev_irq. yes it's a GPA, yes it's pointing at that struct, yes you need to keep it straight. iykyk. πŸ’…

⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • <0 on failure 😭 (negative numbers = the sad path, fr fr)

🌈 SEE ALSO 🌈

bestie. the friend group is huge and they're all in Kernel file ./drivers/virt/acrn/hypercall.h. every single one of these, no skipping:

the whole squad. go read them. obsessed. πŸ‘‘


reminder: the irq arg is a Service VM GPA of struct acrn_ptdev_irq β€” not a raw irq number, not a vibe, a GPA. don't get it twisted. πŸ™ˆ

that's the page, bestie! source is ./drivers/virt/acrn, dated October 2026, and this whole thing lives at hcall_set_ptdev_intr(9). slay, periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from