kvm_nvhe_unwind_init(9)
π kvm_nvhe_unwind_init β like, the Kernel API Manual page you didn't know you needed
okay so bestie, buckle up π this one is from the kernel's own manual (kvm_nvhe_unwind_init(9), yes that's the whole page name, iconic), and it's honestly tiny but it's so important. it's the little function that kicks off an unwind starting from a specific fp and pc down in nVHE HYP land. let's get into it β¨
β¨ NAME β¨
kvm_nvhe_unwind_init β start an unwind from the given nVHE HYP fp and pc π§
like literally that's the whole job. it sets the stage so the unwinder knows where to begin. no cap.
πΈ SYNOPSIS πΈ
void kvm_nvhe_unwind_init (struct unwind_state *state , unsigned long fp
, unsigned long pc );
she takes three things, returns nothing (void, so don't go looking for a return value, there isn't one π). the vibes are: hand her a state, a frame pointer, and a program counter, and she'll do the rest.
π¦ ARGUMENTS π¦
stateβ theunwind_stateyou want to initialize π«Ά this is the main character, the thing she's filling in for you.fpβ the frame pointer at which to start the unwinding. that's your starting point, your origin story πpcβ the program counter at which to start the unwinding. yeah, both of them, she needs both, that's the whole point β¨
real talk: state gets initialized by this, so it's not a "read it and tell me stuff" situation β she's writing into it. treat it accordingly π
π₯ SEE ALSO π₯
- Kernel file
./arch/arm64/include/asm/stacktrace/nvhe.hβ go read the source, it's giving lore, iykyk π
and that's the whole page, bestie, we ate and left no crumbs π
cute little sign-off: this one ships out of the kernel source file ./arch/arm64/include/asm/stacktrace/nvhe.h (the footer squishes it down to ./arch/arm64/include/asm/stack..., but you get it π), and it's dated October 2026 β so yeah, future energy fr fr. bye bestie, happy unwinding ππ
π¦ 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