copy_regset_from_user(9)
πΈ NAME β copy_regset_from_user πΈ
okay so bestie, welcome to the Kernel API Manual β¨ β the main character here is copy_regset_from_user, and what it does is store into a thread's user_regset data from user memory. that's the whole vibe. π
π SYNOPSIS π
int copy_regset_from_user (struct task_struct *target , const struct user_regset_view *view , unsigned int setno , unsigned int offset , unsigned int size , const void __user *data );
π ARGUMENTS π
okay now the cast of characters, and no skips fr fr:
targetβ the thread to be examined πviewβ astruct user_regset_viewdescribing the user thread machine state π§setnoβ index inview->regsetsβ¨offsetβ offset into the regset data, in bytes πsizeβ amount of data to copy, in bytes π«Άdataβ user-mode pointer to copy from πΈ
π₯ SEE ALSO π₯
if you're going on a lil reading journey, the Kernel file is ./include/linux/regset.h, and the related pages are: user_regset_active_fn(9), user_regset_set_fn(9), user_regset_writeback_fn(9), struct user_regset(9), struct user_regset_view(9), and task_user_regset_view(9) π. that's all of them, bestie, periodt.
okay that's the whole page, ily π β source/version: ./include/linux; date: October 2026; page: copy_regset_from_user(9).
π¦ 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