kvm_pmu_release_perf_event(9)
๐ kvm_pmu_release_perf_event(9) ๐
okay so bestie, welcome to the Kernel API Manual โ yes we're in the kernel docs now, main character energy only. This one's a little function from the arm64 KVM PMU corner of the world, and honestly? It's giving "small but important." Let's get into it ๐ซถ
โจ NAME โจ
kvm_pmu_release_perf_event โ remove the perf event ๐
๐ธ SYNOPSIS ๐ธ
void kvm_pmu_release_perf_event (struct kvm_pmc *pmc );
that's it. that's the whole vibe. no return value, it just goes in and does the thing โจ
๐ ARGUMENTS ๐
pmcโ the PMU counter pointer ๐งฎโจ like, the actual counter you're trying to free up. hand it over and it's done.
๐ฆ SEE ALSO ๐ฆ
so this lives in the kernel file ./arch/arm64/kvm/pmu-emul.c โ that's the source of truth, note it ๐
and while you're here, the whole friend group:
kvm_pmc_is_64bit(9)kvm_pmu_get_counter_value(9)kvm_pmu_set_counter_value(9)kvm_pmu_set_counter_value_user(9)kvm_pmu_stop_counter(9)kvm_pmu_vcpu_init(9)kvm_pmu_vcpu_destroy(9)kvm_pmu_flush_hwstate(9)kvm_pmu_sync_hwstate(9)kvm_pmu_software_increment(9)kvm_pmu_handle_pmcr(9)kvm_pmu_create_perf_event(9)kvm_pmu_set_counter_event_type(9)kvm_arm_pmu_get_max_counters(9)kvm_arm_set_default_pmu(9)kvm_vcpu_read_pmcr(9)
like, read the room โ it's a whole ecosystem, not just one function ๐๐
ngl this one is short and sweet: give it the struct kvm_pmc * and it removes the perf event. no cap, that's the whole manual. go off, kernel dev ๐
and that's the tea ๐ this page was hanging out under ./arch/arm64/kvm, dated October 2026, and it's literally titled kvm_pmu_release_perf_event(9) โ iconic, no notes ๐โจ
๐ฆ 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