tm_cgpr_active(9)
π tm_cgpr_active(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a single function from the powerpc ptrace corner of the kernel, and it's literally so specific. let's get into it β¨
β¨ NAME β¨
tm_cgpr_active β get the active number of registers in CGPR π
πΈ SYNOPSIS πΈ
int tm_cgpr_active (struct task_struct *target , const struct
user_regset *regset );
π¦ ARGUMENTS π¦
targetβ the target task. yep, the task you're looking at πregsetβ the user regset structure. the regset vibes, if you will.
π DESCRIPTION π
so this function checks for the active number of available registers in the transaction checkpointed GPR category. that's it, that's the whole job β it's a little vibe check on how many registers are actually live in there π«Ά
(also ngl the original spells it "regisers" β iconique typo, but you know what it means π)
π₯ SEE ALSO π₯
- Kernel file
./arch/powerpc/kernel/ptrace/ptrace-tm.c tm_cgpr_get(9)tm_cfpr_active(9)tm_cfpr_get(9)tm_cfpr_set(9)tm_cvmx_active(9)tm_cvmx_get(9)tm_cvmx_set(9)tm_cvsx_active(9)tm_cvsx_get(9)tm_cvsx_set(9)tm_spr_active(9)tm_spr_get(9)tm_spr_set(9)
like a whole little friend group of tm_* functions, and honestly? they ate π
and that's the page, bestie!! this one lives in ./arch/powerpc/kernel/ptrace and the date on the tin is October 2026 β so go forth and check those CGPR registers, ily, mwah ππ§ββοΈ
π¦ 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