tm_cvsx_set(9)
hey bestie! welcome to tm_cvsx_set(9), straight from the Kernel API Manual π this oneβs all about registers and transactions, and yes, weβre gonna keep every single detail.
β¨ NAME β¨
tm_cvsx_set β set CFPR registers π
π¦ SYNOPSIS π¦
okay so the signature is literally this, no cap:
int tm_cvsx_set (struct task_struct *target , const struct user_regset
*regset , unsigned int pos , unsigned int count , const void *kbuf ,
const void __user *ubuf );
π ARGUMENTS π
hereβs the cast, bestie:
targetβ The target task. π―regsetβ The user regset structure. π§posβ The buffer position. πcountβ Number of bytes to copy. π’kbufβ Kernel buffer to copy into. π«Άubufβ User buffer to copy from. πΈ
π₯ DESCRIPTION π₯
okay so what this function does: it sets in transaction checkpointed VSX registers β¨
when the transaction is active, 'ckfp_state' holds the checkpointed VSX register values for the current transaction to fall back on if it aborts in between. and yeah, this function sets these checkpointed FPR registers, periodt. π
the userspace interface buffer layout is literally this:
struct data { u64 vsx[32]; };
π SEE ALSO π
the kernel file is ./arch/powerpc/kernel/ptrace/ptrace-tm.c, and the whole squad is:
tm_cgpr_active(9)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_spr_active(9)tm_spr_get(9)tm_spr_set(9)
mwah π this lil fave lives in ./arch/powerpc/kernel/ptrace, stamped October 2026, and itβs literally tm_cvsx_set(9) β 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