put_user_inline(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 space
  • udst β€” 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:


🫢 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