kvm_set_routing_entry(9)
π 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'sconst, 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms