put_user_inline(9)
π put_user_inline(9) π
okay so bestie, welcome to the put_user_inline page β that's the inlined "write to user memory" helper from the Kernel API Manual. yes, the whole manual, just for this. we love a dedicated era. π
β¨ NAME β¨
put_user_inline β Write to user memory inlined
πΈ SYNOPSIS πΈ
put_user_inline (val , udst );
π¦ ARGUMENTS π¦
valβ The value to write π like, the actual thing you're yeeting into user spaceudstβ Pointer to the user space memory to write to π― that's your destination, the spot in user memory getting the goods
β RETURN β
0β if successful π slay, it worked-EFAULTβ when faulted π it did not work, the memory said no
π₯ DESCRIPTION π₯
This is the inlined variant of put_user. periodt.
β οΈ Only use when there is a demonstrable performance reason. fr fr β like, an actual, provable one. don't just do it for the vibe. the compiler inlining this everywhere is not a personality trait, bestie.
π SEE ALSO π
Kernel file ./include/linux/uaccess.h β and honestly the whole friend group:
__copy_to_user_inatomic(9)probe_subpage_writeable(9)copy_struct_from_user(9)copy_struct_to_user(9)get_kernel_nofault(9)__scoped_user_access_begin(9)__scoped_user_access(9)scoped_user_read_access_size(9)scoped_user_read_access(9)scoped_user_write_access_size(9)scoped_user_write_access(9)scoped_user_rw_access_size(9)scoped_user_rw_access(9)get_user_inline(9)
π«Ά ok that's the page!! sourced from ./include/linux and dated October 2026 β mwah, go write to user memory responsibly, ily πβ¨
π¦ 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