copy_regset_from_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” a struct user_regset_view describing the user thread machine state 🧚
  • setno β€” index in view->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