tm_cfpr_set(9)
πΈ tm_cfpr_set(9) πΈ
ok so bestie, welcome to the tm_cfpr_set(9) page from the Kernel API Manual β yes it's a kernel manpage, yes we're gonna make it cute, no we are NOT skipping a single detail π
β¨ NAME β¨
tm_cfpr_set β set CFPR registers π
β¨ SYNOPSIS β¨
int tm_cfpr_set (struct task_struct *target , const struct user_regset
*regset , unsigned int pos , unsigned int count , const void *kbuf ,
const void __user *ubuf );
like look at that signature, it's giving main character energy fr fr π
β¨ ARGUMENTS β¨
targetβ the target task, the one we're doing all this for π«Άregsetβ the user regset structure, iconic, we love herposβ the buffer position, i.e. where in the buffer we're at πcountβ number of bytes to copy, literally the amount, no capkbufβ kernel buffer to copy into, that's the destination bestieubufβ user buffer to copy from, that's the source π
β¨ DESCRIPTION β¨
okay so this function sets in transaction checkpointed FPR registers π₯ that's the whole vibe.
When the transaction is active, ckfp_state holds the checkpointed FPR register values for the current transaction β the ones it's gonna fall back on if it aborts in between. This function sets those checkpointed FPR registers. Lowkey important stuff π
The userspace interface buffer layout is as follows:
struct data { u64 fpr[32]; u64 fpscr; };
that's it, that's the layout, memorise it π§
β¨ SEE ALSO β¨
Kernel file ./arch/powerpc/kernel/ptrace/ptrace-tm.c β go read the whole friend group bestie, they're all here:
tm_cgpr_active(9)tm_cgpr_get(9)tm_cfpr_active(9)tm_cfpr_get(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)
and that's the page!! π this lil beauty lives in ./arch/powerpc/kernel/ptrace and the version/date stamp says October 2026, so yeah, from the future, slay β oh and the page is literally called tm_cfpr_set(9) in case you forgot already π bye 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