is_eva_am_mapped(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_eva_am_mapped β€” a Kernel API Manual moment πŸ’…

okay bestie so you've wandered into the is_eva_am_mapped(9) page β€” that's the Kernel API Manual btw, we're in kernel-land now πŸŽ€ β€” and honestly? it's giving "tiny function, big responsibilities." Let's get into it.


✨ NAME ✨

is_eva_am_mapped β€” literally just: figure out whether an access mode is mapped. that's the whole vibe check. πŸ¦‹


🌸 SYNOPSIS 🌸

bool is_eva_am_mapped (struct kvm_vcpu *vcpu , unsigned int am , bool eu
);

three args, one bool back. clean. no notes. πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • vcpu β€” the KVM VCPU state. yes, that VCPU. the main character of this whole operation 🌟
  • am β€” a 3-bit encoded access mode. three bits! tiny! iconic! 🧚
  • eu β€” whether the segment becomes unmapped and uncached when Status.ERL=1. two things at once, she's multitasking πŸ’…

🫢 DESCRIPTION 🫢

so what it does is: it decodes am to find whether it encodes a mapped segment for the current VCPU state. like, context matters, bestie β€” it's not a one-size-fits-all answer 🌈

and where necessary, eu and the actual instruction causing the fault get taken into account too, to make the decision. so it's not just vibes β€” it's looking at the real faulting instruction. no cap. πŸ”₯


😭 RETURN 😭

returns whether the VCPU faulted on a TLB mapped address. that's it. that's the answer. πŸ“


🌺 SEE ALSO 🌺

everything lives in the kernel file ./arch/mips/kvm/vz.c β€” go read it, iykyk πŸ‘€ β€” and also these absolute legends:

like… a whole friend group of timer functions and trap handlers. the way they all show up together 🫢✨


πŸ’€ reminder that eu is about the segment becoming unmapped and uncached when Status.ERL=1 β€” that's a real hardware behaviour thing, not just a cute flag name. don't sleep on it.

and that's the page, bestie!! πŸŽ€ source vibes come from ./arch/mips/kvm, dated October 2026, and this whole manual page is filed under is_eva_am_mapped(9) β€” slay, go map some access modes, ily, bye! πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from