unsafe_memcpy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the unsafe_memcpy(9) page from the Kernel API Manual β€” yes, the manual name is folded in right here at the top, because we're cute like that πŸ’…

  • unsafe_memcpy β€” a memcpy implementation with no FORTIFY bounds checking. literally what it says on the tin, no cap ✨

✨ SYNOPSIS ✨

unsafe_memcpy (dst , src , bytes , justification );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dst β€” destination memory address to write to πŸ’–
  • src β€” source memory address to read from πŸŽ€
  • bytes β€” how many bytes to write to dst from src 🫢
  • justification β€” free-form text or comment describing why the use is needed πŸ“

🌸 DESCRIPTION 🌸

okay so real talk: use this for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. 🧚

it should be used very rarely, and it includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed. πŸ‘‘

πŸ’€ heads up, bestie: this one has no FORTIFY bounds checking, and the page says it should be used very rarely. not a default flex, fr fr.

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’‹ this page came from the ./include/linux source, dated October 2026, and it's literally unsafe_memcpy(9). bye bestie, go be iconic 🫢

πŸ“¦ where this page comes from