copy_xstate_to_uabi_buf(9)
π NAME π
copy_xstate_to_uabi_buf β Copy kernel saved xstate to a UABI buffer. This is the copy_xstate_to_uabi_buf(9) page from the Kernel API Manual, bestie, and we're keeping it cute and complete. β¨
π SYNOPSIS π
void copy_xstate_to_uabi_buf (struct membuf to , struct task_struct *tsk
, enum xstate_copy_mode copy_mode );
π ARGUMENTS π
toβ membuf descriptor. Literally the descriptor, okay?tskβ The task from which to copy the saved xstate.copy_modeβ The requested copy mode.
π¦ DESCRIPTION π¦
Okay so this one converts from kernel XSAVE or XSAVES compacted format to UABI conforming format, i.e. from the kernel internal hardware dependent storage format to the requested mode. And the vibe check: UABI XSTATE is always uncompacted! No cap. π
It supports partial copy, but to.pos always starts from zero. That's the rule, bestie.
π SEE ALSO π
- Kernel file
./arch/x86/kernel/fpu/xstate.c check_xtile_data_against_struct(9)__copy_xstate_to_uabi_buf(9)copy_uabi_to_xstate(9)xsaves(9)xrstors(9)fpstate_realloc(9)fpu_xstate_prctl(9)
Sign-off cuteness: this page comes from ./arch/x86/kernel/fpu, dated October 2026, and it's all for copy_xstate_to_uabi_buf(9). Stay iconic, 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