copy_safe_from_sockptr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ copy_safe_from_sockptr(9) ✨

okay so this little icon is from the Kernel API Manual, and its whole thing is: copy a struct from sockptr. that's it, that's the vibe. bestie, it's giving "safe is literally in the name" πŸ’…


πŸŽ€ NAME πŸŽ€

copy_safe_from_sockptr β€” copy a struct from sockptr

🌸 SYNOPSIS 🌸

int copy_safe_from_sockptr (void *dst , size_t ksize , sockptr_t optval
       , unsigned int optlen );

πŸ’– ARGUMENTS πŸ’–

  • dst β€” Destination address, in kernel space. This buffer must be ksize bytes long. no cap, it literally has to be that long.
  • ksize β€” Size of dst struct.
  • optval β€” Source address. (in user or kernel space)
  • optlen β€” Size of optval data.

πŸ”₯ RETURN πŸ”₯

  • -EINVAL: optlen < ksize
  • -EFAULT: access to userspace failed.
  • 0: ksize bytes were copied

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/sockptr.h


mwah πŸ’– this page is stamped with source/version ./include/linux, dated October 2026, and it's specifically the copy_safe_from_sockptr(9) moment. byeee, go read your sockptr.h bestie πŸ‘‘πŸ«Ά

πŸ“¦ where this page comes from