ib_copy_validate_udata_in(9)
π ib_copy_validate_udata_in(9) π
okay bestie, so this one's from the Kernel API Manual and it's literally the function that copies and validates that your request struct is compatible with this kernel. no cap. π
β¨ SYNOPSIS β¨
ib_copy_validate_udata_in (_udata , _req , _end_member );
π¦ ARGUMENTS π¦
_udataβ the system call'sib_udatastruct. yep, that one. π_reqβ the name of an on-stack structure that holds the driver data. it's giving "pass me the name, not the thing" energy fr fr π«Ά_end_memberβ the member in the struct that's, like, the original end of the struct from the first kernel to ever introduce it. so iconic for backwards compat π
πΈ DESCRIPTION πΈ
so what it does is: it checks that the udata input request struct is properly formed for this kernel (vibe check β
), and then it copies it into req. that's it. that's the whole slay. π
π SEE ALSO π
- kernel file
./include/rdma/uverbs_ioctl.h uverbs_attr_get_uobjs_arr(9)ib_copy_validate_udata_in_cm(9)ib_is_udata_in_empty(9)ib_respond_udata(9)ib_respond_empty_udata(9)ib_no_udata_io(9)
ngl bestie, this is a macro-style thing, so the underscores in the synopsis are doing the heavy lifting. keep them exactly as they are or the whole thing won't compile and you'll be sad. π
β¨ this slay of a function lives in ./include/rdma and the page is from October 2026 β¨ mwah, go forth and validate those udata structs, queen π
π
π¦ 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