vgic_v3_alloc_redist_region(9)
π vgic_v3_alloc_redist_region(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the vgic_v3_alloc_redist_region section of the Kernel API Manual and you're like "what does this even do" β don't worry, I got you. This is the page for vgic_v3_alloc_redist_region, and yes it's giving "arm64 KVM internals main character energy" β¨
πΈ NAME πΈ
vgic_v3_alloc_redist_region β literally just Allocate a new redistributor region. That's it. That's the whole vibe. π
β¨ SYNOPSIS β¨
int vgic_v3_alloc_redist_region (struct kvm *kvm , uint32_t index ,
gpa_t base , uint32_t count );
look at her. four arguments, returns an int, no cap. π₯
π¦ ARGUMENTS π¦
kvmβ the kvm handle, your main character pointer π«Άindexβ the redist region index (she has a position, as she should π)baseβ base of the new rdist region, where she lives πcountβ number of redistributors the region is made of. and this is the spicy bit:0means the old style single region, whose size is induced from the number of vcpus π« iykyk
π DESCRIPTION π
so before she inserts the rdist region into the list, she does various checks β like a vibe check but for kernel data structures π Those tests depend on whether the size of the rdist region is known (ie. count != 0). And the list? It's sorted by rdist region index. sorted bestie. always sorted. π
Returns0on success,< 0otherwise. so like... zero means slay, negative means π
π SEE ALSO π
- Kernel file
./arch/arm64/kvm/vgic/vgic-mmio-v3.c vgic_register_redist_iodev(9)vgic_v3_dispatch_sgi(9)
the whole friend group fr fr π§π
π cute lil sign-off: this page came from ./arch/arm64/kvm/vgic, in the October 2026 era of the Kernel API Manual β 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