kvm_pmu_vcpu_destroy(9)
π kvm_pmu_vcpu_destroy(9) β from the Kernel API Manual, bestie π
Okay so picture this: you're deep in the kvm_pmu_vcpu_destroy(9) page of the Kernel API Manual, and honestly? It's giving cleanup era. β¨ This is the function that frees the perf event of the PMU for a CPU. That's it, that's the whole vibe β a little goodbye ritual so nothing leaks. π«Ά
πΈ NAME πΈ
kvm_pmu_vcpu_destroy β free perf event of PMU for cpu π (yes literally, that's what it does, no cap)
β¨ SYNOPSIS β¨
void kvm_pmu_vcpu_destroy (struct kvm_vcpu *vcpu );
Likeβ¦ that's the whole signature. Void return, one argument, main character energy. π
π¦ ARGUMENTS π¦
vcpuβ The vcpu pointer. That's it. That's the pointer. She's the vcpu pointer and she's iconic for it. π
π SEE ALSO π
First up, the source file this whole situation lives in: Kernel file ./arch/arm64/kvm/pmu-emul.c π β like, that's home base, iykyk.
And now the whole friend group, fr fr β go read these too:
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_release_perf_event(9)kvm_pmu_stop_counter(9)kvm_pmu_vcpu_init(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 a whole squad of PMU lore bestie, every single one of them. π―ββοΈ
β Little reminder: this page lives under./arch/arm64/kvm, and the docs are dated October 2026, so when you cite her you citekvm_pmu_vcpu_destroy(9). π§
Anyway bestie, that's the page β you're caught up, you're thriving, the perf event is freed, we love to see it. ππ
π¦ 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