fh_get_core_state(9)
π fh_get_core_state β get the state of a vcpu
okay so bestie, welcome to the Kernel API Manual entry for fh_get_core_state(9) π this one's short and sweet, and honestly it's giving "tiny function, big main character energy" β¨
πΈ SYNOPSIS
unsigned int fh_get_core_state (unsigned int handle , unsigned int vcpu
, unsigned int *state );
like, yes, that signature really does wrap across two lines, she's just built that way π
π¦ ARGUMENTS
handleβ the handle of the partition that contains the vcpu π«Άvcpuβ the vcpu number, within that partition (iykyk, it's scoped to the partition)stateβ this is a pointer, and on the way out it holds the current state of the vcpu β checkFH_VCPU_*for the actual values π
β¨ DESCRIPTION
Returns 0 for success, or an error code. that's it, that's the whole vibe π
ngl bestie, the manpage does not elaborate further. so if you get a non-zero back, it's an error β periodt π no cap, that's literally all it says.
π₯ SEE ALSO
Kernel file ./arch/powerpc/include/asm/fsl_hcalls.h β go read it, it's the source of truth π§
Then the whole squad of related calls, fr fr:
fh_send_nmi(9)fh_partition_get_dtprop(9)fh_partition_restart(9)fh_partition_get_status(9)fh_partition_start(9)fh_partition_stop(9)struct fh_sg_list(9)fh_partition_memcpy(9)fh_dma_enable(9)fh_dma_disable(9)fh_vmpic_get_msir(9)fh_system_reset(9)fh_err_get_info(9)fh_enter_nap(9)fh_exit_nap(9)fh_claim_device(9)
okay that's the page π this little icon lives in ./arch/powerpc/include/asm, and this edition is dated October 2026, filed under fh_get_core_state(9) β slay, go get that vcpu state bestie ππ
π¦ 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