kvm_vgic_dist_init(9)
β¨ kvm_vgic_dist_init(9) β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is kvm_vgic_dist_init β it's giving very much "let me set up the dist data structures for you" energy π
π NAME π
kvm_vgic_dist_init β initialize the dist data structures
like literally that's the whole job. it inits the dist data structures. iconic, honestly π
π¦ SYNOPSIS π¦
int kvm_vgic_dist_init (struct kvm *kvm , unsigned int nr_spis );
so you're handing it a struct kvm * and an unsigned int and it gives you back an int. no cap, that's the whole signature π«Ά
πΈ ARGUMENTS πΈ
kvmβ kvm struct pointer. yes queen, thekvmstruct pointer, right there, exactly what it says on the tin πnr_spisβ number of spis, and it's frozen by caller. that's not me being dramatic, that's the manpage β the caller freezes it, so don't go messing with it after you hand it over, mkay? π
π§ SEE ALSO π§
the kernel file lives at ./arch/arm64/kvm/vgic/vgic-init.c and honestly go read the whole friend group:
kvm_vgic_early_init(9)kvm_vgic_create(9)kvm_vgic_vcpu_init(9)vgic_lazy_init(9)kvm_vgic_map_resources(9)kvm_vgic_init_cpu_hardware(9)kvm_vgic_hyp_init(9)
they're all in ./arch/arm64/kvm/vgic and they all slay in their own lane β
π quick reminder bestie: I'm only telling you what the page tells you β no extra lore, no invented behaviour. facts stay facts, vibes stay vibes π
and that's the page!! π brought to you by the source ./arch/arm64/kvm/vgic, version October 2026, still out here serving kvm_vgic_dist_init(9) realness π periodt π
π¦ 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