kvm_set_routing_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Okay so real talk, this one's from the Kernel API Manual and it's lowkey a little baby function β€” three args, one return value, no drama. But it's iconic in its own small way, so let's get into it. ✨


🌸 NAME 🌸

kvm_set_routing_entry β€” populate a kvm routing entry from a user routing entry 🫢

Like, it takes the user's routing entry and fills in the kernel's version. Middleman energy, honestly, but the good kind. πŸ’…


⭐ SYNOPSIS ⭐

int kvm_set_routing_entry (struct kvm *kvm , struct
kvm_kernel_irq_routing_entry *e , const struct kvm_irq_routing_entry *ue
);

Returns an int, obviously. No surprises there. πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • kvm β€” the VM this entry is applied to. Like, which VM are we doing all this for? This one. That's the vibe check. πŸ¦‹
  • e β€” kvm kernel routing entry handle. This is the kernel-side one, the one getting populated. Main character of the operation, ngl. πŸ‘‘
  • ue β€” user api routing entry handle. This is the user-side one, and it's const, so hands off β€” it's just here to be read from. πŸ™ˆ

Also, heads up: the return is 0 on success, -EINVAL on errors. So if you get a negative number back, something's off and the function is not having it. 😭


🌈 SEE ALSO 🌈

Kernel file ./arch/arm64/kvm/vgic/vgic-irqfd.c β€” go read it, it's giving source-of-truth. πŸ“–βœ¨


Fr fr, that's the whole page β€” no hidden options, no secret flags, no environment variables lurking anywhere. What you see is what you get. πŸ’€

Kisses from the ./arch/arm64/kvm/vgic crew, dated October 2026 β€” that's the source and the date, bestie, and now you're fully caught up. Slay. πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from