kvm_mips_read_count_running(9)
π kvm_mips_read_count_running(9) β from the Kernel API Manual, bestie π
Okay so picture this: it's giving kernel-internals, it's giving MIPS virtual CPU realness, and honestly? It's iconic. Sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
kvm_mips_read_count_running β literally just reads the current count value as if running. That's the whole vibe. No cap.
π¦ SYNOPSIS π¦
u32 kvm_mips_read_count_running (struct kvm_vcpu *vcpu , ktime_t now );
Copy it exactly like that if you're writing it down, bestie β character for character, don't get cute with the spacing. π
πΈ ARGUMENTS πΈ
vcpuβ the Virtual CPU. The main character, honestly. πnowβ the kernel time to readCP0_Countat. Like, when are we checking? You tell us. β°
π DESCRIPTION π
So what it does is: it returns the current guest CP0_Count register at time now, and β this is the part that matters β it handles if the timer interrupt is pending and hasn't been handled yet. Like it's not just gonna hand you a number and ghost you; it deals with the pending-interrupt situation too. Responsible king behavior, fr fr. π
β¨
π RETURN π
The current value of the guest CP0_Count register. That's it. That's the tea. π«Ά
π§ SEE ALSO π§
Kernel file ./arch/mips/kvm/emulate.c and its whole friend group β they all show up together, iykyk. Lowkey a whole squad:
kvm_get_badinstr(9)kvm_get_badinstrp(9)kvm_mips_count_disabled(9)kvm_mips_ktime_to_count(9)kvm_mips_count_time(9)kvm_mips_read_count(9)kvm_mips_freeze_hrtimer(9)kvm_mips_resume_hrtimer(9)kvm_mips_restore_hrtimer(9)kvm_mips_write_count(9)kvm_mips_init_count(9)kvm_mips_set_count_hz(9)kvm_mips_write_compare(9)kvm_mips_count_disable(9)kvm_mips_count_disable_cause(9)kvm_mips_count_enable_cause(9)kvm_mips_set_count_ctl(9)kvm_mips_set_count_resume(9)kvm_mips_count_timeout(9)
ngl the whole list is giving "linked together in the source tree" energy, and that's the point π
And that's the page, bestie! π¦ This one lives in ./arch/mips/kvm, and the version/date situation is October 2026 β so mark your calendar, screenshot the group chat, and slay the day away. ππβ
π¦ 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