tm_cfpr_get(9)
π tm_cfpr_get(9) β Kernel API Manual π
okay so bestie, welcome to the tm_cfpr_get(9) page β¨ this is a Kernel API Manual moment, and honestly? it's giving powerpc ptrace realness. sit down, grab a strawberry π, and let's get into it.
πΈ NAME πΈ
tm_cfpr_get β get CFPR registers π
like. it gets them. that's the whole vibe check.
π¦ SYNOPSIS π¦
int tm_cfpr_get (struct task_struct *target , const struct user_regset
*regset , struct membuf to );
not me just copying the signature exactly because bestie, no cap, you do not get to paraphrase a function prototype π
π ARGUMENTS π
targetβ the target task, i.e. the main character of this whole operation πregsetβ the user regset structure. yes. that one. π«Άtoβ destination of copy, aka where the goods are going π¦
β DESCRIPTION β
so what does this actually do?? it gets in transaction checkpointed FPR registers β¨ literally that's it, that's the function.
here's the lore: when the transaction is active, ckfp_state holds the checkpointed values for the current transaction, so there's something to fall back on if it aborts in between π (imagine committing mid-transaction with no backup... couldn't be this kernel). this function gets those checkpointed FPR registers, periodt.
the userspace interface buffer layout is as follows π
struct data { u64 fpr[32]; u64 fpscr; };
look at that. fpr[32] and fpscr. iconic. no notes. π§
π₯ SEE ALSO π₯
kernel file ./arch/powerpc/kernel/ptrace/ptrace-tm.c β and the whole friend group, fr fr:
tm_cgpr_active(9)tm_cgpr_get(9)tm_cfpr_active(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, the whole _active / _get / _set cinematic universe ππ go read them, iykyk.
π‘ reminder bestie: this page lives in ./arch/powerpc/kernel/ptrace β that's the source tree path, don't come for me.
and that's the page!! π source/version: ./arch/powerpc/kernel/ptrace Β· dated October 2026 β mwah, slay, bye ππβ¨
π¦ 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