copy_safe_from_sockptr(9)
β¨ 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 beksizebytes long. no cap, it literally has to be that long.ksizeβ Size ofdststruct.optvalβ Source address. (in user or kernel space)optlenβ Size ofoptvaldata.
π₯ RETURN π₯
-EINVAL:optlen < ksize-EFAULT: access to userspace failed.0:ksizebytes 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
- 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